Package codechicken.enderstorage.tile
Class TileFrequencyOwner
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
codechicken.lib.block.ModularBlockEntity
codechicken.enderstorage.tile.TileFrequencyOwner
- All Implemented Interfaces:
net.minecraft.util.debug.DebugValueSource,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
- Direct Known Subclasses:
TileEnderChest,TileEnderTank
public abstract class TileFrequencyOwner
extends codechicken.lib.block.ModularBlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class codechicken.lib.block.ModularBlockEntity
codechicken.lib.block.ModularBlockEntity.DataComponentNested 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
FieldsFields 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
ConstructorsConstructorDescriptionTileFrequencyOwner(net.minecraft.world.level.block.entity.BlockEntityType<?> tileEntityTypeIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivate(net.minecraft.world.entity.player.Player player, int subHit, net.minecraft.world.InteractionHand hand) intcodechicken.lib.packet.StreamPacket.ToClientintabstract AbstractEnderStoragenet.minecraft.nbt.CompoundTaggetUpdateTag(net.minecraft.core.HolderLookup.Provider registries) voidhandleUpdateTag(net.minecraft.world.level.storage.ValueInput input) protected voidloadAdditional(net.minecraft.world.level.storage.ValueInput input) voidvoidonPlaced(@Nullable net.minecraft.world.entity.LivingEntity entity) voidreadFromPacket(net.minecraft.network.RegistryFriendlyByteBuf packet) booleanprotected voidsaveAdditional(net.minecraft.world.level.storage.ValueOutput output) protected voidvoidvoidsetLevel(net.minecraft.world.level.Level p_155231_) voidtick()voidwriteToPacket(net.minecraft.network.RegistryFriendlyByteBuf packet) Methods inherited from class codechicken.lib.block.ModularBlockEntity
getData, onInternalClientPacket, onInternalServerPacketMethods 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, getUpdatePacket, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, 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, onDataPacket, onLoad, requestModelDataUpdate
-
Field Details
-
SELECTION_BUTTON
public static final codechicken.lib.vec.Cuboid6 SELECTION_BUTTON -
frequency
-
-
Constructor Details
-
TileFrequencyOwner
public TileFrequencyOwner(net.minecraft.world.level.block.entity.BlockEntityType<?> tileEntityTypeIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
getFrequency
-
setFreq
-
tick
public void tick() -
getStorage
-
onFrequencySet
public void onFrequencySet() -
loadAdditional
protected void loadAdditional(net.minecraft.world.level.storage.ValueInput input) - Overrides:
loadAdditionalin classcodechicken.lib.block.ModularBlockEntity
-
saveAdditional
protected void saveAdditional(net.minecraft.world.level.storage.ValueOutput output) - Overrides:
saveAdditionalin classcodechicken.lib.block.ModularBlockEntity
-
setLevel
public void setLevel(net.minecraft.world.level.Level p_155231_) - Overrides:
setLevelin classnet.minecraft.world.level.block.entity.BlockEntity
-
activate
public boolean activate(net.minecraft.world.entity.player.Player player, int subHit, net.minecraft.world.InteractionHand hand) -
onPlaced
public void onPlaced(@Nullable @Nullable net.minecraft.world.entity.LivingEntity entity) -
sendUpdatePacket
protected void sendUpdatePacket() -
createPacket
public codechicken.lib.packet.StreamPacket.ToClient createPacket() -
writeToPacket
public void writeToPacket(net.minecraft.network.RegistryFriendlyByteBuf packet) -
readFromPacket
public void readFromPacket(net.minecraft.network.RegistryFriendlyByteBuf packet) -
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag(net.minecraft.core.HolderLookup.Provider registries) - Overrides:
getUpdateTagin classnet.minecraft.world.level.block.entity.BlockEntity
-
handleUpdateTag
public void handleUpdateTag(net.minecraft.world.level.storage.ValueInput input) -
getLightValue
public int getLightValue() -
redstoneInteraction
public boolean redstoneInteraction() -
comparatorOutput
public int comparatorOutput()
-