Interface IPartTypeReader<P extends IPartTypeReader<P,S>,S extends IPartStateReader<P>>
- All Superinterfaces:
INetworkEventListener<IPartNetworkElement<P,,S>> IPartType<P,S>
- All Known Implementing Classes:
PartTypeAudioReader,PartTypeBlockReader,PartTypeEntityReader,PartTypeExtraDimensionalReader,PartTypeFluidReader,PartTypeInventoryReader,PartTypeMachineReader,PartTypeNetworkReader,PartTypeReadBase,PartTypeRedstoneReader,PartTypeWorldReader
public interface IPartTypeReader<P extends IPartTypeReader<P,S>,S extends IPartStateReader<P>>
extends IPartType<P,S>
A part type for readers.
-
Method Summary
Modifier and TypeMethodDescription<V extends IValue,T extends IValueType<V>>
IAspectVariable<V>getVariable(PartTarget target, S partState, IAspectRead<V, T> aspect) Get the singleton variable for an aspect.Methods 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, forceLightTransparency, fromNBT, getBaseBlockState, getBlockModelPath, getBlockState, getChannel, getCloneItemStack, getConsumptionRate, getContainerProvider, getContainerProviderOffsets, getContainerProviderSettings, getItem, getItemStack, getMinimumUpdateInterval, getPartRenderPosition, getPriority, getState, getTarget, getTargetOffset, getTargetSideOverride, getTranslationKey, getUniqueName, getUpdateInterval, isEnabled, isSolid, isUpdate, loadTooltip, loadTooltip, onBlockNeighborChange, onNetworkAddition, onNetworkRemoval, onOffsetVariablesChanged, onPartActivated, onPostRemoved, onPreRemoved, postUpdate, setEnabled, setPriorityAndChannel, setTargetOffset, setTargetSideOverride, setUpdateInterval, shouldTriggerBlockRenderUpdate, supportsOffsets, toNBT, update, updateTick, writeExtraGuiData, writeExtraGuiDataOffsets, writeExtraGuiDataSettings
-
Method Details
-
getReadAspects
List<IAspectRead> getReadAspects()- Returns:
- All possible read aspects that can be used in this part type.
-
getVariable
<V extends IValue,T extends IValueType<V>> IAspectVariable<V> getVariable(PartTarget target, S partState, IAspectRead<V, T> aspect) Get the singleton variable for an aspect.- Type Parameters:
V- The value type.T- The value type type.- Parameters:
target- The target block.partState- The state of this part.aspect- The aspect from the part of this state.- Returns:
- The variable that exists only once for an aspect in the given part state.
-