Class PartContainerTileMultipartTicking
java.lang.Object
org.cyclops.integrateddynamics.capability.partcontainer.PartContainerDefault
org.cyclops.integrateddynamics.capability.partcontainer.PartContainerTileMultipartTicking
- All Implemented Interfaces:
net.neoforged.neoforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
,IPartContainer
Implementation of an
IPartContainer
for a part entity.-
Field Summary
Fields inherited from class org.cyclops.integrateddynamics.capability.partcontainer.PartContainerDefault
partData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.level.Level
getLevel()
protected INetwork
protected net.minecraft.core.BlockPos
getPos()
protected BlockEntityMultipartTicking
getTile()
net.minecraft.core.Direction
getWatchingSide
(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) Get the part side the player is watching.protected void
protected void
Methods inherited from class org.cyclops.integrateddynamics.capability.partcontainer.PartContainerDefault
canAddPart, deserializeNBT, getCapability, getPart, getPartData, getPartNetwork, getParts, getPartState, getPosition, hasPart, hasParts, onPartsChanged, removePart, serializeNBT, setPart, setPartData, setPartState, silentResetPartData, update
-
Constructor Details
-
PartContainerTileMultipartTicking
-
-
Method Details
-
getTile
-
setChanged
protected void setChanged()- Specified by:
setChanged
in classPartContainerDefault
-
sendUpdate
protected void sendUpdate()- Specified by:
sendUpdate
in classPartContainerDefault
-
getLevel
protected net.minecraft.world.level.Level getLevel()- Specified by:
getLevel
in classPartContainerDefault
-
getPos
protected net.minecraft.core.BlockPos getPos()- Specified by:
getPos
in classPartContainerDefault
-
getNetwork
- Specified by:
getNetwork
in classPartContainerDefault
-
getWatchingSide
@Nullable public net.minecraft.core.Direction getWatchingSide(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player) Description copied from interface:IPartContainer
Get the part side the player is watching. This is used to determine the part the player is looking at.- Parameters:
world
- The world.pos
- The block position to perform a ray trace for.player
- The player.- Returns:
- The side the player is watching or null.
-