类 FluidHandlerBlockEntity

所有已实现的接口:
ICapabilityProvider, ICapabilityProviderImpl<BlockEntity>, ICapabilitySerializable<CompoundTag>, IForgeBlockEntity, INBTSerializable<CompoundTag>

public class FluidHandlerBlockEntity extends BlockEntity
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • load

      public void load(CompoundTag tag)
      覆盖:
      load 在类中 BlockEntity
    • saveAdditional

      protected void saveAdditional(CompoundTag tag)
      覆盖:
      saveAdditional 在类中 BlockEntity
    • getCapability

      @NotNull public <T> @NotNull LazyOptional<T> getCapability(@NotNull @NotNull Capability<T> capability, @Nullable @Nullable Direction facing)
      从接口复制的说明: ICapabilityProvider
      Retrieves the Optional handler for the capability requested on the specific side. The return value CAN be the same for multiple faces. Modders are encouraged to cache this value, using the listener capabilities of the Optional to be notified if the requested capability get lost.
      指定者:
      getCapability 在接口中 ICapabilityProvider
      覆盖:
      getCapability 在类中 CapabilityProvider<BlockEntity>
      参数:
      capability - The capability to check
      facing - The Side to check from, CAN BE NULL. Null is defined to represent 'internal' or 'self'
      返回:
      The requested an optional holding the requested capability.