Class PartContainerTileMultipartTicking
java.lang.Object
org.cyclops.integrateddynamics.capability.partcontainer.PartContainerDefault
org.cyclops.integrateddynamics.capability.partcontainer.PartContainerTileMultipartTicking
- All Implemented Interfaces:
org.cyclops.cyclopscore.persist.nbt.INBTSerializable,IPartContainer
Implementation of an
IPartContainer for a part entity.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.cyclopscore.persist.nbt.INBTSerializable
org.cyclops.cyclopscore.persist.nbt.INBTSerializable.SelfNBTClassType -
Field Summary
Fields inherited from class org.cyclops.integrateddynamics.capability.partcontainer.PartContainerDefault
partData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.level.LevelgetLevel()protected INetworkprotected net.minecraft.core.BlockPosgetPos()protected BlockEntityMultipartTickinggetTile()net.minecraft.core.DirectiongetWatchingSide(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 voidprotected voidMethods inherited from class org.cyclops.integrateddynamics.capability.partcontainer.PartContainerDefault
canAddPart, fromValueInput, getCapability, getPart, getPartData, getPartNetwork, getParts, getPartState, getPosition, hasPart, hasParts, onPartsChanged, removePart, setPart, setPartData, setPartState, silentResetPartData, toValueOutput, update
-
Constructor Details
-
PartContainerTileMultipartTicking
-
-
Method Details
-
getTile
-
setChanged
protected void setChanged()- Specified by:
setChangedin classPartContainerDefault
-
sendUpdate
protected void sendUpdate()- Specified by:
sendUpdatein classPartContainerDefault
-
getLevel
protected net.minecraft.world.level.Level getLevel()- Specified by:
getLevelin classPartContainerDefault
-
getPos
protected net.minecraft.core.BlockPos getPos()- Specified by:
getPosin classPartContainerDefault
-
getNetwork
- Specified by:
getNetworkin 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:IPartContainerGet 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.
-