Class SyncedIntAttachment

java.lang.Object
com.github.thedeathlycow.thermoo.impl.neoforge.attachment.SyncedIntAttachment
All Implemented Interfaces:
com.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent

public final class SyncedIntAttachment extends Object implements com.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<SyncedIntAttachment> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, SyncedIntAttachment> STREAM_CODEC
  • Constructor Details

    • SyncedIntAttachment

      public SyncedIntAttachment()
    • SyncedIntAttachment

      public SyncedIntAttachment(int value)
  • Method Details

    • getValue

      public int getValue()
      Specified by:
      getValue in interface com.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent
    • setValue

      public void setValue(int value)
      Specified by:
      setValue in interface com.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent
    • isDirty

      public boolean isDirty()
      Specified by:
      isDirty in interface com.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent