Class SchematicannonBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
com.simibubi.create.foundation.blockEntity.SmartBlockEntity
com.simibubi.create.content.schematics.cannon.SchematicannonBlockEntity
- All Implemented Interfaces:
PartialSafeNBT,SpecialBlockEntityItemRequirement,IInteractionChecker,net.createmod.ponder.api.VirtualBlockEntity,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.client.extensions.IMenuProviderExtension,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
public class SchematicannonBlockEntity
extends SmartBlockEntity
implements net.minecraft.world.MenuProvider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionLinkedHashSet<net.neoforged.neoforge.items.IItemHandler> intintfloatfloatbooleanbooleanbooleanstatic final intnet.minecraft.world.item.ItemStackstatic final intintbooleannet.minecraft.core.BlockPosintbooleanintfloatbooleanbooleanFields inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
lazyTickCounter, lazyTickRateFields 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
ConstructorsConstructorDescriptionSchematicannonBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBehaviours(List<BlockEntityBehaviour> behaviours) protected voidapplyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput) protected voidcollectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) config()net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player) voidvoidnet.minecraft.network.chat.Componentprotected net.minecraft.world.item.ItemStackgetItemForBlock(net.minecraft.world.level.block.state.BlockState blockState) net.minecraft.world.phys.AABBintprotected booleangrabItemsFromAttachedInventories(ItemRequirement.StackRequirement required, boolean simulate) protected voidinitializePrinter(net.minecraft.world.item.ItemStack blueprint) protected voidlaunchBelt(net.minecraft.core.BlockPos target, net.minecraft.world.level.block.state.BlockState state, int length, BeltBlockEntity.CasingType[] casings) protected voidlaunchBlock(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state, net.minecraft.nbt.CompoundTag data) protected voidlaunchBlockOrBelt(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack icon, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntity blockEntity) protected voidlaunchEntity(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity) voidlazyTick()voidprotected voidread(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Hook only these in future subclasses of STEprotected voidreadFlyingBlocks(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries) protected voidprotected voidprotected booleanshouldIgnoreBlockState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity be) protected booleanshouldPlace(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.level.block.state.BlockState toReplace, net.minecraft.world.level.block.state.BlockState toReplaceOther, boolean isNormalCube) static net.minecraft.world.level.block.state.BlockStatestripBeltIfNotLast(net.minecraft.world.level.block.state.BlockState blockState) voidtick()protected voidprotected voidprotected voidvoidvoidwrite(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, destroy, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, initialize, invalidate, isChunkUnloaded, isVirtual, loadAdditional, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, remove, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
createRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
blockHolderGetter, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, 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, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, hasCustomOutlineRendering, invalidateCapabilities, onLoad, requestModelDataUpdateMethods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpen
-
Field Details
-
NEIGHBOUR_CHECKING
public static final int NEIGHBOUR_CHECKING- See Also:
-
MAX_ANCHOR_DISTANCE
public static final int MAX_ANCHOR_DISTANCE- See Also:
-
inventory
-
sendUpdate
public boolean sendUpdate -
dontUpdateChecklist
public boolean dontUpdateChecklist -
neighbourCheckCooldown
public int neighbourCheckCooldown -
printer
-
missingItem
public net.minecraft.world.item.ItemStack missingItem -
positionNotLoaded
public boolean positionNotLoaded -
hasCreativeCrate
public boolean hasCreativeCrate -
previousTarget
public net.minecraft.core.BlockPos previousTarget -
attachedInventories
-
flyingBlocks
-
checklist
-
remainingFuel
public int remainingFuel -
bookPrintingProgress
public float bookPrintingProgress -
schematicProgress
public float schematicProgress -
statusMsg
-
state
-
blocksPlaced
public int blocksPlaced -
blocksToPlace
public int blocksToPlace -
replaceMode
public int replaceMode -
skipMissing
public boolean skipMissing -
replaceBlockEntities
public boolean replaceBlockEntities -
firstRenderTick
public boolean firstRenderTick -
defaultYaw
public float defaultYaw
-
-
Constructor Details
-
SchematicannonBlockEntity
public SchematicannonBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
findInventories
public void findInventories() -
read
protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Description copied from class:SmartBlockEntityHook only these in future subclasses of STE- Overrides:
readin classSmartBlockEntity
-
readFlyingBlocks
protected void readFlyingBlocks(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries) -
write
public void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Description copied from class:SmartBlockEntityHook only these in future subclasses of STE- Overrides:
writein classSmartBlockEntity
-
tick
public void tick()- Overrides:
tickin classSmartBlockEntity
-
config
-
tickPrinter
protected void tickPrinter() -
getShotsPerGunpowder
public int getShotsPerGunpowder() -
initializePrinter
protected void initializePrinter(net.minecraft.world.item.ItemStack blueprint) -
getItemForBlock
protected net.minecraft.world.item.ItemStack getItemForBlock(net.minecraft.world.level.block.state.BlockState blockState) -
grabItemsFromAttachedInventories
protected boolean grabItemsFromAttachedInventories(ItemRequirement.StackRequirement required, boolean simulate) -
finishedPrinting
public void finishedPrinting() -
resetPrinter
protected void resetPrinter() -
shouldPlace
protected boolean shouldPlace(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.level.block.state.BlockState toReplace, net.minecraft.world.level.block.state.BlockState toReplaceOther, boolean isNormalCube) -
shouldIgnoreBlockState
protected boolean shouldIgnoreBlockState(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity be) -
tickFlyingBlocks
protected void tickFlyingBlocks() -
refillFuelIfPossible
protected void refillFuelIfPossible() -
tickPaperPrinter
protected void tickPaperPrinter() -
stripBeltIfNotLast
public static net.minecraft.world.level.block.state.BlockState stripBeltIfNotLast(net.minecraft.world.level.block.state.BlockState blockState) -
launchBlockOrBelt
protected void launchBlockOrBelt(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack icon, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.world.level.block.entity.BlockEntity blockEntity) -
launchBelt
protected void launchBelt(net.minecraft.core.BlockPos target, net.minecraft.world.level.block.state.BlockState state, int length, BeltBlockEntity.CasingType[] casings) -
launchBlock
protected void launchBlock(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.nbt.CompoundTag data) -
launchEntity
protected void launchEntity(net.minecraft.core.BlockPos target, net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.Entity entity) -
playFiringSound
public void playFiringSound() -
createMenu
public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory inv, net.minecraft.world.entity.player.Player player) - Specified by:
createMenuin interfacenet.minecraft.world.inventory.MenuConstructor
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.MenuProvider
-
updateChecklist
public void updateChecklist() -
addBehaviours
- Specified by:
addBehavioursin classSmartBlockEntity
-
lazyTick
public void lazyTick()- Overrides:
lazyTickin classSmartBlockEntity
-
getRenderBoundingBox
public net.minecraft.world.phys.AABB getRenderBoundingBox()- Overrides:
getRenderBoundingBoxin classCachedRenderBBBlockEntity
-
applyImplicitComponents
protected void applyImplicitComponents(net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput componentInput) - Overrides:
applyImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-
collectImplicitComponents
protected void collectImplicitComponents(net.minecraft.core.component.DataComponentMap.Builder components) - Overrides:
collectImplicitComponentsin classnet.minecraft.world.level.block.entity.BlockEntity
-