java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
All Implemented Interfaces:
IHaveGoggleInformation, IHaveHoveringInformation, IInteractionChecker, IPartialSafeNBT, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class BeltTileEntity extends KineticTileEntity
  • Field Details

    • passengers

      public Map<net.minecraft.world.entity.Entity,BeltMovementHandler.TransportedEntityInfo> passengers
    • color

      public Optional<net.minecraft.world.item.DyeColor> color
    • beltLength

      public int beltLength
    • index

      public int index
    • lastInsert

      public net.minecraft.core.Direction lastInsert
    • casing

    • controller

      protected net.minecraft.core.BlockPos controller
    • inventory

      protected BeltInventory inventory
    • itemHandler

      protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> itemHandler
    • trackerUpdateTag

      public net.minecraft.nbt.CompoundTag trackerUpdateTag
    • lighter

      public com.simibubi.create.content.contraptions.relays.belt.BeltTileEntity.BeltLighter lighter
    • CASING_PROPERTY

      public static final net.minecraftforge.client.model.data.ModelProperty<BeltTileEntity.CasingType> CASING_PROPERTY
  • Constructor Details

    • BeltTileEntity

      public BeltTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • addBehaviours

      public void addBehaviours(List<TileEntityBehaviour> behaviours)
      Overrides:
      addBehaviours in class KineticTileEntity
    • tick

      public void tick()
      Overrides:
      tick in class KineticTileEntity
    • calculateStressApplied

      public float calculateStressApplied()
      Overrides:
      calculateStressApplied in class KineticTileEntity
    • createRenderBoundingBox

      public net.minecraft.world.phys.AABB createRenderBoundingBox()
      Overrides:
      createRenderBoundingBox in class CachedRenderBBTileEntity
    • initializeItemHandler

      protected void initializeItemHandler()
    • getCapability

      public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, net.minecraft.core.Direction side)
      Specified by:
      getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvider
      Overrides:
      getCapability in class net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
    • setRemoved

      public void setRemoved()
      Overrides:
      setRemoved in class KineticTileEntity
    • write

      public void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class KineticTileEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class KineticTileEntity
    • clearKineticInformation

      public void clearKineticInformation()
      Overrides:
      clearKineticInformation in class KineticTileEntity
    • applyColor

      public void applyColor(net.minecraft.world.item.DyeColor colorIn)
    • getControllerTE

      public BeltTileEntity getControllerTE()
    • setController

      public void setController(net.minecraft.core.BlockPos controller)
    • getController

      public net.minecraft.core.BlockPos getController()
    • isController

      public boolean isController()
    • getBeltMovementSpeed

      public float getBeltMovementSpeed()
    • getDirectionAwareBeltMovementSpeed

      public float getDirectionAwareBeltMovementSpeed()
    • hasPulley

      public boolean hasPulley()
    • isLastBelt

      protected boolean isLastBelt()
    • getMovementDirection

      public net.minecraft.core.Vec3i getMovementDirection(boolean firstHalf)
    • getBeltChainDirection

      public net.minecraft.core.Vec3i getBeltChainDirection()
    • getMovementDirection

      protected net.minecraft.core.Vec3i getMovementDirection(boolean firstHalf, boolean ignoreHalves)
    • getMovementFacing

      public net.minecraft.core.Direction getMovementFacing()
    • getBeltFacing

      protected net.minecraft.core.Direction getBeltFacing()
    • getInventory

      public BeltInventory getInventory()
    • setCasingType

      public void setCasingType(BeltTileEntity.CasingType type)
    • getModelData

      public net.minecraftforge.client.model.data.IModelData getModelData()
    • canPropagateDiagonally

      protected boolean canPropagateDiagonally(IRotate block, net.minecraft.world.level.block.state.BlockState state)
      Overrides:
      canPropagateDiagonally in class KineticTileEntity
    • propagateRotationTo

      public float propagateRotationTo(KineticTileEntity target, net.minecraft.world.level.block.state.BlockState stateFrom, net.minecraft.world.level.block.state.BlockState stateTo, net.minecraft.core.BlockPos diff, boolean connectedViaAxes, boolean connectedViaCogs)
      Description copied from class: KineticTileEntity
      Specify ratio of transferred rotation from this kinetic component to a specific other.
      Overrides:
      propagateRotationTo in class KineticTileEntity
      Parameters:
      target - other Kinetic TE to transfer to
      stateFrom - this TE's blockstate
      stateTo - other TE's blockstate
      diff - difference in position (to.pos - from.pos)
      connectedViaAxes - whether these kinetic blocks are connected via mutual IRotate.hasShaftTowards()
      connectedViaCogs - whether these kinetic blocks are connected via mutual IRotate.hasIntegratedCogwheel()
      Returns:
      factor of rotation speed from this TE to other. 0 if no rotation is transferred, or the standard rules apply (integrated shafts/cogs)
    • invalidateItemHandler

      public void invalidateItemHandler()
    • shouldRenderNormally

      public boolean shouldRenderNormally()