Class FactoryPanelBehaviour
java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.simibubi.create.foundation.blockEntity.behaviour.filtering.FilteringBehaviour
com.simibubi.create.content.logistics.factoryBoard.FactoryPanelBehaviour
- All Implemented Interfaces:
ClipboardCloneable,ValueSettingsBehaviour,net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider,net.neoforged.neoforge.client.extensions.IMenuProviderExtension
public class FactoryPanelBehaviour
extends FilteringBehaviour
implements net.minecraft.world.MenuProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.simibubi.create.foundation.blockEntity.behaviour.ValueSettingsBehaviour
ValueSettingsBehaviour.ValueSettings -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanList<net.minecraft.world.item.ItemStack> static final BehaviourType<FactoryPanelBehaviour> static final BehaviourType<FactoryPanelBehaviour> net.createmod.catnip.animation.LerpedFloatbooleanintbooleanintbooleanbooleanMap<net.minecraft.core.BlockPos, FactoryPanelConnection> static final BehaviourType<FactoryPanelBehaviour> static final BehaviourType<FactoryPanelBehaviour> booleanFields inherited from class com.simibubi.create.foundation.blockEntity.behaviour.filtering.FilteringBehaviour
count, customLabel, filter, TYPE, upToFields inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
blockEntity -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnection(FactoryPanelPosition fromPos) static FactoryPanelBehaviourat(net.minecraft.world.level.BlockAndTintGetter world, FactoryPanelConnection connection) static FactoryPanelBehaviourat(net.minecraft.world.level.BlockAndTintGetter world, FactoryPanelPosition pos) booleancanShortInteract(net.minecraft.world.item.ItemStack toApply) voidcreateBoard(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.BlockHitResult hitResult) net.minecraft.world.inventory.AbstractContainerMenucreateMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player) voiddestroy()Block destroyed or removed.voiddisable()voidvoidvoiddisplayScreen(net.minecraft.world.entity.player.Player player) voidenable()net.minecraft.network.chat.MutableComponentnet.minecraft.network.chat.MutableComponentnet.minecraft.network.chat.MutableComponentnet.minecraft.network.chat.Componentintnet.minecraft.network.chat.MutableComponentgetLabel()intintfloatnet.minecraft.network.chat.MutableComponentgetTip()getType()static BehaviourType<?> intvoidbooleanisActive()booleanbooleanvoidlazyTick()static FactoryPanelSupportBehaviourlinkAt(net.minecraft.world.level.BlockAndTintGetter world, FactoryPanelConnection connection) static FactoryPanelSupportBehaviourlinkAt(net.minecraft.world.level.BlockAndTintGetter world, FactoryPanelPosition pos) voidmoveTo(FactoryPanelPosition newPos, net.minecraft.server.level.ServerPlayer player) intnetId()voidonShortInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.Direction side, net.minecraft.world.phys.BlockHitResult hitResult) panelBE()voidread(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) booleanreadFromClipboard(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag, net.minecraft.world.entity.player.Player player, net.minecraft.core.Direction side, boolean simulate) voidvoidbooleansetFilter(net.minecraft.world.item.ItemStack stack) voidsetNetwork(UUID network) voidsetValueSettings(net.minecraft.world.entity.player.Player player, ValueSettingsBehaviour.ValueSettings settings, boolean ctrlDown) voidtick()voidwrite(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) voidwriteSafe(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries) Called when isSafeNBT == true.booleanwriteToClipboard(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag, net.minecraft.core.Direction side) Methods inherited from class com.simibubi.create.foundation.blockEntity.behaviour.filtering.FilteringBehaviour
acceptsValueSettings, anyAmount, bypassesInput, forFluids, forRecipes, getAmount, getClipboardKey, getFilter, getFilter, getSlotPositioning, isRecipeFilter, isSafeNBT, onlyActiveWhen, setFilter, setLabel, showCount, showCountWhen, test, test, testHit, withCallback, withPredicateMethods inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
get, get, getPos, getWorld, onBlockChanged, onNeighborChanged, setLazyTickRate, unloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpen, writeClientSideDataMethods inherited from interface com.simibubi.create.foundation.blockEntity.behaviour.ValueSettingsBehaviour
mayInteract, newSettingHovered, onlyVisibleWithWrench, playFeedbackSound
-
Field Details
-
TOP_LEFT
-
TOP_RIGHT
-
BOTTOM_LEFT
-
BOTTOM_RIGHT
-
targetedBy
-
targetedByLinks
-
targeting
-
activeCraftingArrangement
-
satisfied
public boolean satisfied -
promisedSatisfied
public boolean promisedSatisfied -
waitingForNetwork
public boolean waitingForNetwork -
recipeAddress
-
recipeOutput
public int recipeOutput -
bulb
public net.createmod.catnip.animation.LerpedFloat bulb -
slot
-
promiseClearingInterval
public int promiseClearingInterval -
forceClearPromises
public boolean forceClearPromises -
network
-
active
public boolean active -
redstonePowered
public boolean redstonePowered -
restockerPromises
-
-
Constructor Details
-
FactoryPanelBehaviour
-
-
Method Details
-
setNetwork
-
at
@Nullable public static FactoryPanelBehaviour at(net.minecraft.world.level.BlockAndTintGetter world, FactoryPanelConnection connection) -
at
@Nullable public static FactoryPanelBehaviour at(net.minecraft.world.level.BlockAndTintGetter world, FactoryPanelPosition pos) -
linkAt
@Nullable public static FactoryPanelSupportBehaviour linkAt(net.minecraft.world.level.BlockAndTintGetter world, FactoryPanelConnection connection) -
linkAt
@Nullable public static FactoryPanelSupportBehaviour linkAt(net.minecraft.world.level.BlockAndTintGetter world, FactoryPanelPosition pos) -
moveTo
-
initialize
public void initialize()- Overrides:
initializein classBlockEntityBehaviour
-
tick
public void tick()- Overrides:
tickin classBlockEntityBehaviour
-
lazyTick
public void lazyTick()- Overrides:
lazyTickin classBlockEntityBehaviour
-
checkForRedstoneInput
public void checkForRedstoneInput() -
addConnection
-
getPanelPosition
-
panelBE
-
onShortInteract
public void onShortInteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.core.Direction side, net.minecraft.world.phys.BlockHitResult hitResult) - Specified by:
onShortInteractin interfaceValueSettingsBehaviour- Overrides:
onShortInteractin classFilteringBehaviour
-
enable
public void enable() -
disable
public void disable() -
isActive
public boolean isActive()- Specified by:
isActivein interfaceValueSettingsBehaviour- Overrides:
isActivein classFilteringBehaviour
-
isMissingAddress
public boolean isMissingAddress() -
destroy
public void destroy()Description copied from class:BlockEntityBehaviourBlock destroyed or removed. Requires block to call ITE::onRemove- Overrides:
destroyin classFilteringBehaviour
-
disconnectAll
public void disconnectAll() -
disconnectAllLinks
public void disconnectAllLinks() -
getUnloadedLinks
public int getUnloadedLinks() -
getLevelInStorage
public int getLevelInStorage() -
getPromised
public int getPromised() -
resetTimer
public void resetTimer() -
resetTimerSlightly
public void resetTimerSlightly() -
writeSafe
public void writeSafe(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries) Description copied from class:BlockEntityBehaviourCalled when isSafeNBT == true. Defaults to write()- Overrides:
writeSafein classBlockEntityBehaviour
-
write
public void write(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
writein classFilteringBehaviour
-
read
public void read(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
readin classFilteringBehaviour
-
getRenderDistance
public float getRenderDistance()- Overrides:
getRenderDistancein classFilteringBehaviour
-
formatValue
public net.minecraft.network.chat.MutableComponent formatValue(ValueSettingsBehaviour.ValueSettings value) - Overrides:
formatValuein classFilteringBehaviour
-
setFilter
public boolean setFilter(net.minecraft.world.item.ItemStack stack) - Overrides:
setFilterin classFilteringBehaviour
-
setValueSettings
public void setValueSettings(net.minecraft.world.entity.player.Player player, ValueSettingsBehaviour.ValueSettings settings, boolean ctrlDown) - Specified by:
setValueSettingsin interfaceValueSettingsBehaviour- Overrides:
setValueSettingsin classFilteringBehaviour
-
createBoard
public ValueSettingsBoard createBoard(net.minecraft.world.entity.player.Player player, net.minecraft.world.phys.BlockHitResult hitResult) - Specified by:
createBoardin interfaceValueSettingsBehaviour- Overrides:
createBoardin classFilteringBehaviour
-
getLabel
public net.minecraft.network.chat.MutableComponent getLabel()- Overrides:
getLabelin classFilteringBehaviour
-
getValueSettings
- Specified by:
getValueSettingsin interfaceValueSettingsBehaviour- Overrides:
getValueSettingsin classFilteringBehaviour
-
getTip
public net.minecraft.network.chat.MutableComponent getTip()- Overrides:
getTipin classFilteringBehaviour
-
getAmountTip
public net.minecraft.network.chat.MutableComponent getAmountTip()- Overrides:
getAmountTipin classFilteringBehaviour
-
getCountLabelForValueBox
public net.minecraft.network.chat.MutableComponent getCountLabelForValueBox()- Overrides:
getCountLabelForValueBoxin classFilteringBehaviour
-
netId
public int netId()- Specified by:
netIdin interfaceValueSettingsBehaviour- Overrides:
netIdin classFilteringBehaviour
-
isCountVisible
public boolean isCountVisible()- Overrides:
isCountVisiblein classFilteringBehaviour
-
getType
- Overrides:
getTypein classFilteringBehaviour
-
getTypeForSlot
-
displayScreen
public void displayScreen(net.minecraft.world.entity.player.Player player) -
getIngredientStatusColor
public int getIngredientStatusColor() -
getRequiredItems
- Overrides:
getRequiredItemsin classFilteringBehaviour
-
canShortInteract
public boolean canShortInteract(net.minecraft.world.item.ItemStack toApply) - Overrides:
canShortInteractin classFilteringBehaviour
-
readFromClipboard
public boolean readFromClipboard(@NotNull net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag, net.minecraft.world.entity.player.Player player, net.minecraft.core.Direction side, boolean simulate) - Specified by:
readFromClipboardin interfaceClipboardCloneable- Specified by:
readFromClipboardin interfaceValueSettingsBehaviour- Overrides:
readFromClipboardin classFilteringBehaviour
-
writeToClipboard
public boolean writeToClipboard(@NotNull net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag, net.minecraft.core.Direction side) - Specified by:
writeToClipboardin interfaceClipboardCloneable- Specified by:
writeToClipboardin interfaceValueSettingsBehaviour- Overrides:
writeToClipboardin classFilteringBehaviour
-
createMenu
public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, 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
-
getFrogAddress
-