Class PartTypeAspects<P extends IPartType<P,S>,S extends IPartState<P>>
java.lang.Object
org.cyclops.integrateddynamics.api.part.PartTypeAdapter<P,S>
org.cyclops.integrateddynamics.core.part.PartTypeBase<P,S>
org.cyclops.integrateddynamics.core.part.PartTypeConfigurable<P,S>
org.cyclops.integrateddynamics.core.part.PartTypeAspects<P,S>
- All Implemented Interfaces:
INetworkEventListener<IPartNetworkElement<P,,S>> IPartType<P,S>
- Direct Known Subclasses:
PartTypeReadBase,PartTypeWriteBase
public abstract class PartTypeAspects<P extends IPartType<P,S>,S extends IPartState<P>>
extends PartTypeConfigurable<P,S>
An abstract
IPartType that can hold aspects.-
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 TypeMethodDescriptionintgetConsumptionRate(S state) booleanvoidloadTooltip(net.minecraft.world.item.ItemStack itemStack, List<net.minecraft.network.chat.Component> lines) Add tooltip lines for this aspect when this part's item is being hovered.Methods 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, registerBlock, writeExtraGuiDataMethods inherited from class org.cyclops.integrateddynamics.api.part.PartTypeAdapter
afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, constructDefaultState, 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, shouldTriggerBlockRenderUpdate, toNBT, update, 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.part.IPartType
getContainerProvider, getItem, getPartRenderPosition, supportsOffsets
-
Constructor Details
-
PartTypeAspects
-
-
Method Details
-
getAspects
- Returns:
- All possible aspects that can be used in this part type.
-
isUpdate
- Specified by:
isUpdatein interfaceIPartType<P extends IPartType<P,S>, S extends IPartState<P>> - Overrides:
isUpdatein classPartTypeAdapter<P extends IPartType<P,S>, S extends IPartState<P>> - Parameters:
state- The state- Returns:
- If this element should be updated. This method is only called once during network initialization.
-
getConsumptionRate
- Specified by:
getConsumptionRatein interfaceIPartType<P extends IPartType<P,S>, S extends IPartState<P>> - Overrides:
getConsumptionRatein classPartTypeAdapter<P extends IPartType<P,S>, S extends IPartState<P>> - Parameters:
state- The state- Returns:
- The consumption rate of this part for the given state.
-
loadTooltip
public void loadTooltip(net.minecraft.world.item.ItemStack itemStack, List<net.minecraft.network.chat.Component> lines) Description copied from interface:IPartTypeAdd tooltip lines for this aspect when this part's item is being hovered.- Specified by:
loadTooltipin interfaceIPartType<P extends IPartType<P,S>, S extends IPartState<P>> - Overrides:
loadTooltipin classPartTypeBase<P extends IPartType<P,S>, S extends IPartState<P>> - Parameters:
itemStack- The itemstack.lines- The list to add lines to.
-