Interface IPartTypeWriter<P extends IPartTypeWriter<P,S>,S extends IPartStateWriter<P>>
- All Superinterfaces:
INetworkEventListener<IPartNetworkElement<P,,S>> IPartType<P,,S> IPartTypeActiveVariable<P,S>
- All Known Implementing Classes:
PartTypeAudioWriter,PartTypeEffectWriter,PartTypeEntityWriter,PartTypeInventoryWriter,PartTypeMachineWriter,PartTypeRedstoneWriter,PartTypeWriteBase
public interface IPartTypeWriter<P extends IPartTypeWriter<P,S>,S extends IPartStateWriter<P>>
extends IPartTypeActiveVariable<P,S>
A part type for writers.
-
Method Summary
Modifier and TypeMethodDescriptiongetActiveAspect(PartTarget target, S partState) Get the aspect that is currently active in this part, can be null.voidupdateActivation(PartTarget target, S partState, net.minecraft.world.entity.player.Player player) Update the active aspect and active variable for this part.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, writeExtraGuiDataSettingsMethods inherited from interface org.cyclops.integrateddynamics.api.part.IPartTypeActiveVariable
getActiveVariable, hasActiveVariable
-
Method Details
-
getWriteAspects
List<IAspectWrite> getWriteAspects()- Returns:
- All possible write aspects that can be used in this part type.
-
getActiveAspect
Get the aspect that is currently active in this part, can be null.- Parameters:
target- The target block.partState- The state of this part.- Returns:
- The active aspect.
-
updateActivation
void updateActivation(PartTarget target, S partState, @Nullable net.minecraft.world.entity.player.Player player) Update the active aspect and active variable for this part.- Parameters:
target- The target block.partState- The state of this part.player- The player activating the aspect, can be null.
-