Class PartTypeRedstoneReader
java.lang.Object
org.cyclops.integrateddynamics.api.part.PartTypeAdapter<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>>
org.cyclops.integrateddynamics.core.part.PartTypeBase<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>>
org.cyclops.integrateddynamics.core.part.PartTypeConfigurable<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>>
org.cyclops.integrateddynamics.core.part.PartTypeAspects<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>>
org.cyclops.integrateddynamics.core.part.read.PartTypeReadBase<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>>
org.cyclops.integrateddynamics.part.PartTypeRedstoneReader
- All Implemented Interfaces:
INetworkEventListener<IPartNetworkElement<PartTypeRedstoneReader,,PartStateReaderBase<PartTypeRedstoneReader>>> IPartType<PartTypeRedstoneReader,,PartStateReaderBase<PartTypeRedstoneReader>> IPartTypeReader<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>>
public class PartTypeRedstoneReader
extends PartTypeReadBase<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>>
A redstone reader part.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidonNetworkAddition(INetwork network, IPartNetwork partNetwork, PartTarget target, PartStateReaderBase<PartTypeRedstoneReader> state) Called when this element is added to the network.voidonNetworkRemoval(INetwork network, IPartNetwork partNetwork, PartTarget target, PartStateReaderBase<PartTypeRedstoneReader> state) Called when this element is removed from the network.Methods inherited from class org.cyclops.integrateddynamics.core.part.read.PartTypeReadBase
getContainerProvider, getReadAspects, getUpdateAspects, getVariable, isSolid, onBlockNeighborChange, setTargetOffset, setTargetSideOverride, update, writeExtraGuiDataMethods inherited from class org.cyclops.integrateddynamics.core.part.PartTypeAspects
getAspects, isUpdate, loadTooltipMethods inherited from class org.cyclops.integrateddynamics.core.part.PartTypeConfigurable
getContainerProviderOffsets, getContainerProviderSettings, writeExtraGuiDataOffsets, writeExtraGuiDataSettingsMethods inherited from class org.cyclops.integrateddynamics.core.part.PartTypeBase
addDrops, constructNetworkEventActions, createBlock, createItem, createNetworkElement, createTranslationKey, forceLightTransparency, getBaseBlockState, getBlockModelPath, getBlockState, getMod, getModId, getSubscribedEvents, getUniqueName, hasEventSubscriptions, loadTooltip, onEvent, onPartActivated, 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, onBlockNeighborChange, onOffsetVariablesChanged, onPostRemoved, onPreRemoved, postUpdate, serializeState, setEnabled, setPriorityAndChannel, setUpdateInterval, shouldTriggerBlockRenderUpdate, 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
addDrops, afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, createNetworkElement, defaultBlockState, deserializeState, forceLightTransparency, getBaseBlockState, getBlockModelPath, getBlockState, getChannel, getCloneItemStack, getContainerProviderOffsets, getContainerProviderSettings, getItem, getItemStack, getMinimumUpdateInterval, getPartRenderPosition, getPriority, getState, getTarget, getTargetOffset, getTargetSideOverride, getTranslationKey, getUniqueName, getUpdateInterval, isEnabled, isUpdate, loadTooltip, loadTooltip, onBlockNeighborChange, onOffsetVariablesChanged, onPartActivated, onPostRemoved, onPreRemoved, postUpdate, serializeState, setEnabled, setPriorityAndChannel, setUpdateInterval, shouldTriggerBlockRenderUpdate, supportsOffsets, updateTick, writeExtraGuiDataOffsets, writeExtraGuiDataSettings
-
Constructor Details
-
PartTypeRedstoneReader
-
-
Method Details
-
constructDefaultState
- Specified by:
constructDefaultStatein classPartTypeAdapter<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>> - Returns:
- Constructor call for a new default state for this part type.
-
getConsumptionRate
- Specified by:
getConsumptionRatein interfaceIPartType<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>> - Overrides:
getConsumptionRatein classPartTypeAspects<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>> - Parameters:
state- The state- Returns:
- The consumption rate of this part for the given state.
-
onNetworkAddition
public void onNetworkAddition(INetwork network, IPartNetwork partNetwork, PartTarget target, PartStateReaderBase<PartTypeRedstoneReader> state) Description copied from interface:IPartTypeCalled when this element is added to the network.- Specified by:
onNetworkAdditionin interfaceIPartType<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>> - Overrides:
onNetworkAdditionin classPartTypeAdapter<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>> - Parameters:
network- The network to update in.partNetwork- The part network to update in.target- The target block.state- The state
-
onNetworkRemoval
public void onNetworkRemoval(INetwork network, IPartNetwork partNetwork, PartTarget target, PartStateReaderBase<PartTypeRedstoneReader> state) Description copied from interface:IPartTypeCalled when this element is removed from the network.- Specified by:
onNetworkRemovalin interfaceIPartType<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>> - Overrides:
onNetworkRemovalin classPartTypeAdapter<PartTypeRedstoneReader,PartStateReaderBase<PartTypeRedstoneReader>> - Parameters:
network- The network to update in.partNetwork- The part network to update in.target- The target block.state- The state
-