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 ClassesNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected net.minecraft.world.level.block.BlockcreateBlock(org.cyclops.cyclopscore.config.extendedconfig.BlockConfigCommon<?> blockConfig, net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) Factory method for creating a block instance.booleanintbooleanMethods inherited from class org.cyclops.integrateddynamics.core.part.panel.PartTypePanelVariableDriven
addDrops, constructNetworkEventActions, getActiveVariable, getBlockState, getContainerProvider, getStatus, hasActiveVariable, isUpdate, loadTooltip, onPartActivated, onValueChanged, onVariableContentsUpdated, shouldTriggerBlockRenderUpdate, update, writeExtraGuiDataMethods inherited from class org.cyclops.integrateddynamics.core.part.PartTypeBase
createItem, createNetworkElement, createTranslationKey, getBaseBlockState, getBlockModelPath, getMod, getModId, getSubscribedEvents, getUniqueName, hasEventSubscriptions, loadTooltip, onEvent, registerBlockMethods inherited from class org.cyclops.integrateddynamics.api.part.PartTypeAdapter
afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, defaultBlockState, deserializeState, getChannel, getCloneItemStack, getItemStack, getMinimumUpdateInterval, getPriority, getState, getTarget, getTargetOffset, getTargetSideOverride, getTranslationKey, getUpdateInterval, hasOffsetVariables, isEnabled, isSolid, onBlockNeighborChange, onBlockNeighborChange, onNetworkAddition, onNetworkRemoval, onOffsetVariablesChanged, onPostRemoved, onPreRemoved, postUpdate, serializeState, setEnabled, setPriorityAndChannel, setTargetOffset, setTargetSideOverride, setUpdateInterval, updateTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.api.network.INetworkEventListener
getSubscribedEvents, hasEventSubscriptions, onEventMethods inherited from interface org.cyclops.integrateddynamics.api.part.IPartType
afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, createNetworkElement, defaultBlockState, deserializeState, getBaseBlockState, getBlockModelPath, getChannel, getCloneItemStack, getContainerProviderOffsets, getContainerProviderSettings, getItem, getItemStack, getMinimumUpdateInterval, getPartRenderPosition, getPriority, getState, getTarget, getTargetOffset, getTargetSideOverride, getTranslationKey, getUniqueName, getUpdateInterval, isEnabled, isSolid, loadTooltip, onBlockNeighborChange, onBlockNeighborChange, onNetworkAddition, onNetworkRemoval, onOffsetVariablesChanged, onPostRemoved, onPreRemoved, postUpdate, serializeState, setEnabled, setPriorityAndChannel, setTargetOffset, setTargetSideOverride, setUpdateInterval, 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.BlockConfigCommon<?> blockConfig, net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) Description copied from class:PartTypeBaseFactory method for creating a block instance.- Overrides:
createBlockin classPartTypePanelVariableDriven<PartTypePanelDisplay,PartTypePanelDisplay.State> - Parameters:
blockConfig- The config to register the block for.properties-- Returns:
- The block instance.
-
constructDefaultState
- Specified by:
constructDefaultStatein classPartTypeAdapter<PartTypePanelDisplay,PartTypePanelDisplay.State> - Returns:
- Constructor call for a new default state for this part type.
-
getConsumptionRate
- Specified by:
getConsumptionRatein interfaceIPartType<PartTypePanelDisplay,PartTypePanelDisplay.State> - Overrides:
getConsumptionRatein classPartTypeAdapter<PartTypePanelDisplay,PartTypePanelDisplay.State> - Parameters:
state- The state- Returns:
- The consumption rate of this part for the given state.
-
forceLightTransparency
- Specified by:
forceLightTransparencyin interfaceIPartType<PartTypePanelDisplay,PartTypePanelDisplay.State> - Overrides:
forceLightTransparencyin classPartTypeBase<PartTypePanelDisplay,PartTypePanelDisplay.State> - Parameters:
state- The state.- Returns:
- If this part should force the block to be transparent to light.
-