Class PartTypePanelDisplay
java.lang.Object
org.cyclops.integrateddynamics.api.part.PartTypeAdapter<PartTypePanelDisplay,PartTypePanelDisplay.State>
org.cyclops.integrateddynamics.core.part.PartTypeBase<PartTypePanelDisplay,PartTypePanelDisplay.State>
org.cyclops.integrateddynamics.core.part.panel.PartTypePanel<PartTypePanelDisplay,PartTypePanelDisplay.State>
org.cyclops.integrateddynamics.core.part.panel.PartTypePanelVariableDriven<PartTypePanelDisplay,PartTypePanelDisplay.State>
org.cyclops.integrateddynamics.part.PartTypePanelDisplay
- All Implemented Interfaces:
INetworkEventListener<IPartNetworkElement<PartTypePanelDisplay,
,PartTypePanelDisplay.State>> IPartType<PartTypePanelDisplay,
,PartTypePanelDisplay.State> IPartTypeActiveVariable<PartTypePanelDisplay,
PartTypePanelDisplay.State>
public class PartTypePanelDisplay
extends PartTypePanelVariableDriven<PartTypePanelDisplay,PartTypePanelDisplay.State>
A part that can display variables.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.integrateddynamics.core.part.PartTypeBase
PartTypeBase.IEventAction<P extends IPartType<P,
S>, S extends IPartState<P>, E extends INetworkEvent> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.level.block.Block
createBlock
(org.cyclops.cyclopscore.config.extendedconfig.BlockConfig blockConfig) Factory method for creating a block instance.boolean
int
boolean
Methods inherited from class org.cyclops.integrateddynamics.core.part.panel.PartTypePanelVariableDriven
addDrops, afterNetworkAlive, beforeNetworkKill, constructNetworkEventActions, getActiveVariable, getBlockState, getContainerProvider, getStatus, hasActiveVariable, isUpdate, loadTooltip, onPartActivated, onValueChanged, onVariableContentsUpdated, shouldTriggerBlockRenderUpdate, update, writeExtraGuiData
Methods inherited from class org.cyclops.integrateddynamics.core.part.PartTypeBase
createItem, createNetworkElement, createTranslationKey, getBaseBlockState, getBlockModelPath, getMod, getSubscribedEvents, getUniqueName, hasEventSubscriptions, loadTooltip, onEvent, registerBlock
Methods inherited from class org.cyclops.integrateddynamics.api.part.PartTypeAdapter
afterNetworkReAlive, defaultBlockState, fromNBT, getChannel, getCloneItemStack, getItemStack, getMinimumUpdateInterval, getPriority, getState, getTarget, getTargetOffset, getTargetSideOverride, getTranslationKey, getUpdateInterval, hasOffsetVariables, isEnabled, isSolid, onBlockNeighborChange, onNetworkAddition, onNetworkRemoval, onOffsetVariablesChanged, onPostRemoved, onPreRemoved, postUpdate, setEnabled, setPriorityAndChannel, setTargetOffset, setTargetSideOverride, setUpdateInterval, toNBT, updateTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.integrateddynamics.api.network.INetworkEventListener
getSubscribedEvents, hasEventSubscriptions, onEvent
Methods inherited from interface org.cyclops.integrateddynamics.api.part.IPartType
afterNetworkReAlive, createNetworkElement, defaultBlockState, fromNBT, getBaseBlockState, getBlockModelPath, getChannel, getCloneItemStack, getContainerProviderOffsets, getContainerProviderSettings, getItem, getItemStack, getMinimumUpdateInterval, getPartRenderPosition, getPriority, getState, getTarget, getTargetOffset, getTargetSideOverride, getTranslationKey, getUniqueName, getUpdateInterval, isEnabled, isSolid, loadTooltip, onBlockNeighborChange, onNetworkAddition, onNetworkRemoval, onOffsetVariablesChanged, onPostRemoved, onPreRemoved, postUpdate, setEnabled, setPriorityAndChannel, setTargetOffset, setTargetSideOverride, setUpdateInterval, toNBT, updateTick, writeExtraGuiDataOffsets, writeExtraGuiDataSettings
-
Constructor Details
-
PartTypePanelDisplay
-
-
Method Details
-
supportsOffsets
public boolean supportsOffsets()- Returns:
- If this part can handle custom offsets.
-
createBlock
protected net.minecraft.world.level.block.Block createBlock(org.cyclops.cyclopscore.config.extendedconfig.BlockConfig blockConfig) Description copied from class:PartTypeBase
Factory method for creating a block instance.- Overrides:
createBlock
in classPartTypePanelVariableDriven<PartTypePanelDisplay,
PartTypePanelDisplay.State> - Parameters:
blockConfig
- The config to register the block for.- Returns:
- The block instance.
-
constructDefaultState
- Specified by:
constructDefaultState
in classPartTypeAdapter<PartTypePanelDisplay,
PartTypePanelDisplay.State> - Returns:
- Constructor call for a new default state for this part type.
-
getConsumptionRate
- Specified by:
getConsumptionRate
in interfaceIPartType<PartTypePanelDisplay,
PartTypePanelDisplay.State> - Overrides:
getConsumptionRate
in classPartTypeAdapter<PartTypePanelDisplay,
PartTypePanelDisplay.State> - Parameters:
state
- The state- Returns:
- The consumption rate of this part for the given state.
-
forceLightTransparency
- Specified by:
forceLightTransparency
in interfaceIPartType<PartTypePanelDisplay,
PartTypePanelDisplay.State> - Overrides:
forceLightTransparency
in classPartTypeBase<PartTypePanelDisplay,
PartTypePanelDisplay.State> - Parameters:
state
- The state.- Returns:
- If this part should force the block to be transparent to light.
-