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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SyncedIntAttachment> static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, SyncedIntAttachment> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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:
getValuein interfacecom.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent
-
setValue
public void setValue(int value) - Specified by:
setValuein interfacecom.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent
-
isDirty
public boolean isDirty()- Specified by:
isDirtyin interfacecom.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent
-