Package codechicken.translocators.tile
Class TileCraftingGrid
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
codechicken.translocators.tile.TileCraftingGrid
- All Implemented Interfaces:
net.minecraft.util.debug.DebugValueSource,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
public class TileCraftingGrid
extends net.minecraft.world.level.block.entity.BlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsFieldNested classes/interfaces inherited from interface net.minecraft.util.debug.DebugValueSource
net.minecraft.util.debug.DebugValueSource.Registration, net.minecraft.util.debug.DebugValueSource.ValueGetter<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.world.item.ItemStack[]net.minecraft.world.item.ItemStackintintFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionTileCraftingGrid(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(int subHit, net.minecraft.world.entity.player.Player player) voidcraft(net.minecraft.server.level.ServerPlayer player) voidnet.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> net.minecraft.nbt.CompoundTaggetUpdateTag(net.minecraft.core.HolderLookup.Provider registryAccess) voidhandleUpdateTag(net.minecraft.world.level.storage.ValueInput input) voidloadAdditional(net.minecraft.world.level.storage.ValueInput input) voidonDataPacket(net.minecraft.network.Connection net, net.minecraft.world.level.storage.ValueInput input) voidonPlaced(net.minecraft.world.entity.LivingEntity entity) voidreadFromPacket(codechicken.lib.data.MCDataInput packet) voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) voidvoidwriteToPacket(codechicken.lib.data.MCDataOutput packet) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, syncData, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate
-
Field Details
-
items
public net.minecraft.world.item.ItemStack[] items -
result
public net.minecraft.world.item.ItemStack result -
rotation
public int rotation -
timeout
public int timeout
-
-
Constructor Details
-
TileCraftingGrid
public TileCraftingGrid(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
saveAdditional
public void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
loadAdditional
public void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classnet.minecraft.world.level.block.entity.BlockEntity
-
tickServer
public void tickServer() -
dropItems
public void dropItems() -
getUpdatePacket
public net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()- Overrides:
getUpdatePacketin classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider registryAccess) - Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
onDataPacket
public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.world.level.storage.ValueInput input) -
handleUpdateTag
public void handleUpdateTag(net.minecraft.world.level.storage.ValueInput input) -
writeToPacket
public void writeToPacket(codechicken.lib.data.MCDataOutput packet) -
readFromPacket
public void readFromPacket(codechicken.lib.data.MCDataInput packet) -
activate
public void activate(int subHit, net.minecraft.world.entity.player.Player player) -
craft
public void craft(net.minecraft.server.level.ServerPlayer player) -
onPlaced
public void onPlaced(net.minecraft.world.entity.LivingEntity entity)
-