Class SyncedIntCardinalComponent
java.lang.Object
com.github.thedeathlycow.thermoo.impl.fabric.cca.SyncedIntCardinalComponent
- All Implemented Interfaces:
com.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent, org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent, org.ladysnake.cca.api.v3.component.sync.ComponentPacketWriter, org.ladysnake.cca.api.v3.component.sync.PlayerSyncPredicate, org.ladysnake.cca.api.v8.component.CardinalComponent
public final class SyncedIntCardinalComponent
extends Object
implements com.github.thedeathlycow.thermoo.impl.ecs.SyncedIntEntityComponent, org.ladysnake.cca.api.v8.component.CardinalComponent, org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent
-
Constructor Summary
ConstructorsConstructorDescriptionSyncedIntCardinalComponent(net.minecraft.world.entity.LivingEntity provider) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplySyncPacket(net.minecraft.network.RegistryFriendlyByteBuf buf) intgetValue()booleanisDirty()booleanvoidreadData(net.minecraft.world.level.storage.ValueInput readView) voidsetValue(int value) booleanshouldSyncWith(net.minecraft.server.level.ServerPlayer player) voidwriteData(net.minecraft.world.level.storage.ValueOutput writeView) voidwriteSyncPacket(net.minecraft.network.RegistryFriendlyByteBuf buf, net.minecraft.server.level.ServerPlayer recipient)
-
Constructor Details
-
SyncedIntCardinalComponent
public SyncedIntCardinalComponent(net.minecraft.world.entity.LivingEntity provider)
-
-
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
-
readData
public void readData(net.minecraft.world.level.storage.ValueInput readView) - Specified by:
readDatain interfaceorg.ladysnake.cca.api.v8.component.CardinalComponent
-
writeData
public void writeData(net.minecraft.world.level.storage.ValueOutput writeView) - Specified by:
writeDatain interfaceorg.ladysnake.cca.api.v8.component.CardinalComponent
-
writeSyncPacket
public void writeSyncPacket(net.minecraft.network.RegistryFriendlyByteBuf buf, net.minecraft.server.level.ServerPlayer recipient) - Specified by:
writeSyncPacketin interfaceorg.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent- Specified by:
writeSyncPacketin interfaceorg.ladysnake.cca.api.v3.component.sync.ComponentPacketWriter
-
applySyncPacket
public void applySyncPacket(net.minecraft.network.RegistryFriendlyByteBuf buf) - Specified by:
applySyncPacketin interfaceorg.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent
-
shouldSyncWith
public boolean shouldSyncWith(net.minecraft.server.level.ServerPlayer player) - Specified by:
shouldSyncWithin interfaceorg.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent- Specified by:
shouldSyncWithin interfaceorg.ladysnake.cca.api.v3.component.sync.PlayerSyncPredicate
-
isRequiredOnClient
public boolean isRequiredOnClient()- Specified by:
isRequiredOnClientin interfaceorg.ladysnake.cca.api.v3.component.sync.PlayerSyncPredicate
-