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.
  • Field Details

    • unlocalizedTypeSuffix

      protected final String 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>, S extends IPartState<P>> void update(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 interface IAspect<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>, S extends IPartStateWriter<P>> void onActivate(P partType, PartTarget target, S state)
      Description copied from interface: IAspectWrite
      When this aspect has become active.
      Specified by:
      onActivate in interface IAspectWrite<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>, S extends IPartStateWriter<P>> void onDeactivate(P partType, PartTarget target, S state)
      Description copied from interface: IAspectWrite
      When this aspect has become inactive.
      Specified by:
      onDeactivate in interface IAspectWrite<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

      protected String getUnlocalizedType()
      Specified by:
      getUnlocalizedType in class AspectBase<V extends IValue,T extends IValueType<V>>
    • registerModelResourceLocation

      protected void registerModelResourceLocation()