Class BeltTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.tileEntity.SyncedTileEntity
com.simibubi.create.foundation.tileEntity.SmartTileEntity
com.simibubi.create.content.contraptions.base.KineticTileEntity
com.simibubi.create.content.contraptions.relays.belt.BeltTileEntity
- All Implemented Interfaces:
com.jozufozu.flywheel.backend.api.FlywheelRendered,com.jozufozu.flywheel.light.LightListener,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
implements com.jozufozu.flywheel.light.LightListener
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>Nested classes/interfaces inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
IHaveGoggleInformation.Format -
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final net.minecraftforge.client.model.data.ModelProperty<BeltTileEntity.CasingType>Optional<net.minecraft.world.item.DyeColor>protected net.minecraft.core.BlockPosintprotected BeltInventoryprotected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler>net.minecraft.core.Directionbyte[]Map<net.minecraft.world.entity.Entity,BeltMovementHandler.TransportedEntityInfo> net.minecraft.nbt.CompoundTagFields inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
cachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABBFields inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
componentSpacing, numberFormat, spacing -
Constructor Summary
ConstructorsConstructorDescriptionBeltTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBehaviours(List<TileEntityBehaviour> behaviours) voidapplyColor(net.minecraft.world.item.DyeColor colorIn) floatprotected booleancanPropagateDiagonally(IRotate block, net.minecraft.world.level.block.state.BlockState state) voidprotected voidfromTag(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEnet.minecraft.core.Vec3iprotected net.minecraft.core.Directionfloat<T> net.minecraftforge.common.util.LazyOptional<T>getCapability(net.minecraftforge.common.capabilities.Capability<T> cap, net.minecraft.core.Direction side) net.minecraft.core.BlockPosfloatnet.minecraftforge.client.model.data.IModelDatanet.minecraft.core.Vec3igetMovementDirection(boolean firstHalf) protected net.minecraft.core.Vec3igetMovementDirection(boolean firstHalf, boolean ignoreHalves) net.minecraft.core.Directioncom.jozufozu.flywheel.light.GridAlignedBBbooleanprotected voidvoidbooleanprotected booleannet.minecraft.world.phys.AABBvoidonLightUpdate(com.jozufozu.flywheel.light.LightProvider world, net.minecraft.world.level.LightLayer type, com.jozufozu.flywheel.light.ImmutableBox changed) floatpropagateRotationTo(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) Specify ratio of transferred rotation from this kinetic component to a specific other.voidvoidsetController(net.minecraft.core.BlockPos controller) voidbooleancom.jozufozu.flywheel.light.ListenerStatusstatus()voidtick()voidwrite(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.content.contraptions.base.KineticTileEntity
addPropagationLocations, addToGoggleTooltip, addToTooltip, attachKinetics, calculateAddedStressCapacity, convertToAngular, convertToDirection, convertToLinear, detachKinetics, getFlickerScore, getGeneratedSpeed, getOrCreateNetwork, getRenderBoundingBox, getSpeed, getStressConfigKey, getTheoreticalSpeed, hasNetwork, hasSource, initialize, isCustomConnection, isNoisy, isOverStressed, isSource, isSpeedRequirementFulfilled, needsSpeedUpdate, onSpeedChanged, removeSource, requestModelDataUpdate, setNetwork, setSource, setSpeed, switchToBlockState, tickAudio, updateFromNetwork, warnOfMovementMethods inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, readClientUpdate, refreshBlockState, removeBehaviour, saveAdditional, sendToContainer, setLazyTickRate, writeSafe, writeToClientMethods inherited from class com.simibubi.create.foundation.tileEntity.SyncedTileEntity
causeBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, notifyUpdate, onDataPacket, packetTarget, save, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jozufozu.flywheel.backend.api.FlywheelRendered
getWorldMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, handleUpdateTag, onLoad, serializeNBTMethods inherited from interface com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation
containedFluidTooltipMethods inherited from interface com.jozufozu.flywheel.light.LightListener
onLightPacket
-
Field Details
-
passengers
-
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
-
itemHandler
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> itemHandler -
trackerUpdateTag
public net.minecraft.nbt.CompoundTag trackerUpdateTag -
light
public byte[] light -
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
- Overrides:
addBehavioursin classKineticTileEntity
-
tick
public void tick()- Overrides:
tickin classKineticTileEntity
-
calculateStressApplied
public float calculateStressApplied()- Overrides:
calculateStressAppliedin classKineticTileEntity
-
makeRenderBoundingBox
public net.minecraft.world.phys.AABB makeRenderBoundingBox()- Overrides:
makeRenderBoundingBoxin classKineticTileEntity
-
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:
getCapabilityin interfacenet.minecraftforge.common.capabilities.ICapabilityProvider- Overrides:
getCapabilityin classnet.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
-
setRemoved
public void setRemoved()- Overrides:
setRemovedin classKineticTileEntity
-
write
public void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
writein classKineticTileEntity
-
fromTag
protected void fromTag(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
fromTagin classKineticTileEntity
-
clearKineticInformation
public void clearKineticInformation()- Overrides:
clearKineticInformationin classKineticTileEntity
-
applyColor
public void applyColor(net.minecraft.world.item.DyeColor colorIn) -
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
-
setCasingType
-
getModelData
public net.minecraftforge.client.model.data.IModelData getModelData()- Specified by:
getModelDatain interfacenet.minecraftforge.common.extensions.IForgeBlockEntity
-
canPropagateDiagonally
protected boolean canPropagateDiagonally(IRotate block, net.minecraft.world.level.block.state.BlockState state) - Overrides:
canPropagateDiagonallyin classKineticTileEntity
-
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:KineticTileEntitySpecify ratio of transferred rotation from this kinetic component to a specific other.- Overrides:
propagateRotationToin classKineticTileEntity- Parameters:
target- other Kinetic TE to transfer tostateFrom- this TE's blockstatestateTo- other TE's blockstatediff- 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()- Specified by:
shouldRenderNormallyin interfacecom.jozufozu.flywheel.backend.api.FlywheelRendered
-
getVolume
public com.jozufozu.flywheel.light.GridAlignedBB getVolume()- Specified by:
getVolumein interfacecom.jozufozu.flywheel.light.LightListener
-
status
public com.jozufozu.flywheel.light.ListenerStatus status()- Specified by:
statusin interfacecom.jozufozu.flywheel.light.LightListener
-
onLightUpdate
public void onLightUpdate(com.jozufozu.flywheel.light.LightProvider world, net.minecraft.world.level.LightLayer type, com.jozufozu.flywheel.light.ImmutableBox changed) - Specified by:
onLightUpdatein interfacecom.jozufozu.flywheel.light.LightListener
-