Class PartContainerTileMultipartTicking
java.lang.Object
org.cyclops.integrateddynamics.capability.partcontainer.PartContainerDefault
org.cyclops.integrateddynamics.capability.partcontainer.PartContainerTileMultipartTicking
- All Implemented Interfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.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
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, deserializeNBT, getCapability, getPart, getPartData, getPartNetwork, getParts, getPartState, getPosition, hasPart, hasParts, onPartsChanged, removePart, serializeNBT, setPart, setPartData, setPartState, silentResetPartData, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
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.
-