public class BeltTileEntity extends KineticTileEntity implements com.jozufozu.flywheel.light.ILightUpdateListener
| Modifier and Type | Class and Description |
|---|---|
static class |
BeltTileEntity.CasingType |
IHaveGoggleInformation.Format| Modifier and Type | Field and Description |
|---|---|
int |
beltLength |
BeltTileEntity.CasingType |
casing |
static net.minecraftforge.client.model.data.ModelProperty<BeltTileEntity.CasingType> |
CASING_PROPERTY |
java.util.Optional<net.minecraft.item.DyeColor> |
color |
protected net.minecraft.util.math.BlockPos |
controller |
int |
index |
protected BeltInventory |
inventory |
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> |
itemHandler |
net.minecraft.util.Direction |
lastInsert |
byte[] |
light |
java.util.Map<net.minecraft.entity.Entity,BeltMovementHandler.TransportedEntityInfo> |
passengers |
net.minecraft.nbt.CompoundNBT |
trackerUpdateTag |
cachedBoundingBox, capacity, effects, lastCapacityProvided, lastStressApplied, network, networkDirty, overStressed, preventSpeedUpdate, source, speed, stress, updateSpeed, wasMovedcomponentSpacing, numberFormat, spacing| Constructor and Description |
|---|
BeltTileEntity(net.minecraft.tileentity.TileEntityType<? extends BeltTileEntity> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviours(java.util.List<TileEntityBehaviour> behaviours) |
void |
applyColor(net.minecraft.item.DyeColor colorIn) |
float |
calculateStressApplied() |
protected boolean |
canPropagateDiagonally(IRotate block,
net.minecraft.block.BlockState state) |
void |
clearKineticInformation() |
protected void |
fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
net.minecraft.util.math.vector.Vector3i |
getBeltChainDirection() |
protected net.minecraft.util.Direction |
getBeltFacing() |
float |
getBeltMovementSpeed() |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
net.minecraft.util.Direction side) |
net.minecraft.util.math.BlockPos |
getController() |
BeltTileEntity |
getControllerTE() |
float |
getDirectionAwareBeltMovementSpeed() |
BeltInventory |
getInventory() |
net.minecraftforge.client.model.data.IModelData |
getModelData() |
net.minecraft.util.math.vector.Vector3i |
getMovementDirection(boolean firstHalf) |
protected net.minecraft.util.math.vector.Vector3i |
getMovementDirection(boolean firstHalf,
boolean ignoreHalves) |
net.minecraft.util.Direction |
getMovementFacing() |
boolean |
hasPulley() |
protected void |
initializeItemHandler() |
void |
invalidateItemHandler() |
boolean |
isController() |
protected boolean |
isLastBelt() |
net.minecraft.util.math.AxisAlignedBB |
makeRenderBoundingBox() |
boolean |
onLightUpdate(net.minecraft.world.IBlockDisplayReader world,
net.minecraft.world.LightType type,
com.jozufozu.flywheel.light.GridAlignedBB changed) |
float |
propagateRotationTo(KineticTileEntity target,
net.minecraft.block.BlockState stateFrom,
net.minecraft.block.BlockState stateTo,
net.minecraft.util.math.BlockPos diff,
boolean connectedViaAxes,
boolean connectedViaCogs)
Specify ratio of transferred rotation from this kinetic component to a
specific other.
|
void |
setCasingType(BeltTileEntity.CasingType type) |
void |
setController(net.minecraft.util.math.BlockPos controller) |
void |
setRemoved() |
boolean |
shouldRenderNormally() |
void |
tick() |
void |
write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
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, warnOfMovementaddBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, readClientUpdate, removeBehaviour, save, sendToContainer, setLazyTickRate, writeSafe, writeToClientcauseBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendDataclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainedFluidTooltip, formatgetWorldpublic java.util.Map<net.minecraft.entity.Entity,BeltMovementHandler.TransportedEntityInfo> passengers
public java.util.Optional<net.minecraft.item.DyeColor> color
public int beltLength
public int index
public net.minecraft.util.Direction lastInsert
public BeltTileEntity.CasingType casing
protected net.minecraft.util.math.BlockPos controller
protected BeltInventory inventory
protected net.minecraftforge.common.util.LazyOptional<net.minecraftforge.items.IItemHandler> itemHandler
public net.minecraft.nbt.CompoundNBT trackerUpdateTag
public byte[] light
public static final net.minecraftforge.client.model.data.ModelProperty<BeltTileEntity.CasingType> CASING_PROPERTY
public BeltTileEntity(net.minecraft.tileentity.TileEntityType<? extends BeltTileEntity> type)
public void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class KineticTileEntitypublic void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class KineticTileEntitypublic float calculateStressApplied()
calculateStressApplied in class KineticTileEntitypublic net.minecraft.util.math.AxisAlignedBB makeRenderBoundingBox()
makeRenderBoundingBox in class KineticTileEntityprotected void initializeItemHandler()
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> cap,
net.minecraft.util.Direction side)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.tileentity.TileEntity>public void setRemoved()
setRemoved in class KineticTileEntitypublic void write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntitywrite in class KineticTileEntityprotected void fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class KineticTileEntitypublic void clearKineticInformation()
clearKineticInformation in class KineticTileEntitypublic void applyColor(net.minecraft.item.DyeColor colorIn)
public BeltTileEntity getControllerTE()
public void setController(net.minecraft.util.math.BlockPos controller)
public net.minecraft.util.math.BlockPos getController()
public boolean isController()
public float getBeltMovementSpeed()
public float getDirectionAwareBeltMovementSpeed()
public boolean hasPulley()
protected boolean isLastBelt()
public net.minecraft.util.math.vector.Vector3i getMovementDirection(boolean firstHalf)
public net.minecraft.util.math.vector.Vector3i getBeltChainDirection()
protected net.minecraft.util.math.vector.Vector3i getMovementDirection(boolean firstHalf,
boolean ignoreHalves)
public net.minecraft.util.Direction getMovementFacing()
protected net.minecraft.util.Direction getBeltFacing()
public BeltInventory getInventory()
public void setCasingType(BeltTileEntity.CasingType type)
public net.minecraftforge.client.model.data.IModelData getModelData()
getModelData in interface net.minecraftforge.common.extensions.IForgeTileEntityprotected boolean canPropagateDiagonally(IRotate block, net.minecraft.block.BlockState state)
canPropagateDiagonally in class KineticTileEntitypublic float propagateRotationTo(KineticTileEntity target, net.minecraft.block.BlockState stateFrom, net.minecraft.block.BlockState stateTo, net.minecraft.util.math.BlockPos diff, boolean connectedViaAxes, boolean connectedViaCogs)
KineticTileEntitypropagateRotationTo in class KineticTileEntitytarget - 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()public void invalidateItemHandler()
public boolean shouldRenderNormally()
shouldRenderNormally in interface com.jozufozu.flywheel.backend.instancing.IInstanceRenderedpublic boolean onLightUpdate(net.minecraft.world.IBlockDisplayReader world,
net.minecraft.world.LightType type,
com.jozufozu.flywheel.light.GridAlignedBB changed)
onLightUpdate in interface com.jozufozu.flywheel.light.ILightUpdateListener