Class AspectWriteBase<V extends IValue,T extends IValueType<V>>
java.lang.Object
org.cyclops.integrateddynamics.part.aspect.AspectBase<V,T>
org.cyclops.integrateddynamics.part.aspect.write.AspectWriteBase<V,T>
- All Implemented Interfaces:
IAspect<V,
,T> IAspectWrite<V,
T>
public abstract class AspectWriteBase<V extends IValue,T extends IValueType<V>>
extends AspectBase<V,T>
implements IAspectWrite<V,T>
Base class for write aspects.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.part.aspect.IAspect
IAspect.AspectComparator
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAspectWriteBase
(org.cyclops.cyclopscore.init.ModBase mod, String unlocalizedTypeSuffix, IAspectProperties defaultProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
<P extends IPartTypeWriter<P,
S>, S extends IPartStateWriter<P>>
voidonActivate
(P partType, PartTarget target, S state) When this aspect has become active.<P extends IPartTypeWriter<P,
S>, S extends IPartStateWriter<P>>
voidonDeactivate
(P partType, PartTarget target, S state) When this aspect has become inactive.protected void
<P extends IPartType<P,
S>, S extends IPartState<P>>
voidupdate
(INetwork network, IPartNetwork partNetwork, P partType, PartTarget target, S state) Called inside part types for updating a part on a block.Methods inherited from class org.cyclops.integrateddynamics.part.aspect.AspectBase
createDefaultProperties, getDefaultProperties, getMod, getModId, getProperties, getPropertiesContainerProvider, getPropertyTypes, getTranslationKey, getUniqueName, getUnlocalizedPrefix, hasProperties, loadTooltip, setProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.integrateddynamics.api.part.aspect.IAspect
getDefaultProperties, getProperties, getPropertiesContainerProvider, getPropertyTypes, getTranslationKey, getUniqueName, getValueType, hasProperties, loadTooltip, setProperties
Methods inherited from interface org.cyclops.integrateddynamics.api.part.aspect.IAspectWrite
write
-
Field Details
-
unlocalizedTypeSuffix
-
-
Constructor Details
-
AspectWriteBase
public AspectWriteBase(org.cyclops.cyclopscore.init.ModBase mod, String unlocalizedTypeSuffix, IAspectProperties defaultProperties)
-
-
Method Details
-
update
public <P extends IPartType<P,S>, void updateS extends IPartState<P>> (INetwork network, IPartNetwork partNetwork, P partType, PartTarget target, S state) Description copied from interface:IAspect
Called inside part types for updating a part on a block.- Specified by:
update
in interfaceIAspect<V extends IValue,
T extends IValueType<V>> - Type Parameters:
P
- The part type type.S
- The part state.- Parameters:
network
- The network to update in.partNetwork
- The part network to update in.partType
- The part type.target
- The position that is targeted by the given part.state
- The current state of the given part.
-
onActivate
public <P extends IPartTypeWriter<P,S>, void onActivateS extends IPartStateWriter<P>> (P partType, PartTarget target, S state) Description copied from interface:IAspectWrite
When this aspect has become active.- Specified by:
onActivate
in interfaceIAspectWrite<V extends IValue,
T extends IValueType<V>> - Type Parameters:
P
- The part type type.S
- The part state.- Parameters:
partType
- The part type.target
- The position that is targeted by the given part.state
- The current state of the given part.
-
onDeactivate
public <P extends IPartTypeWriter<P,S>, void onDeactivateS extends IPartStateWriter<P>> (P partType, PartTarget target, S state) Description copied from interface:IAspectWrite
When this aspect has become inactive.- Specified by:
onDeactivate
in interfaceIAspectWrite<V extends IValue,
T extends IValueType<V>> - Type Parameters:
P
- The part type type.S
- The part state.- Parameters:
partType
- The part type.target
- The position that is targeted by the given part.state
- The current state of the given part.
-
getUnlocalizedType
- Specified by:
getUnlocalizedType
in classAspectBase<V extends IValue,
T extends IValueType<V>>
-
registerModelResourceLocation
protected void registerModelResourceLocation()
-