Class EnvironmentComponent

java.lang.Object
com.github.thedeathlycow.thermoo.impl.component.EnvironmentComponent
All Implemented Interfaces:
org.ladysnake.cca.api.v3.component.Component, org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent, org.ladysnake.cca.api.v3.component.sync.ComponentPacketWriter, org.ladysnake.cca.api.v3.component.sync.PlayerSyncPredicate

public class EnvironmentComponent extends Object implements org.ladysnake.cca.api.v3.component.Component, org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent
  • Constructor Details

    • EnvironmentComponent

      public EnvironmentComponent(net.minecraft.entity.LivingEntity provider)
  • Method Details

    • getValue

      public int getValue()
    • setValue

      public void setValue(int value)
    • markDirty

      public void markDirty()
    • isDirty

      public boolean isDirty()
    • readData

      public void readData(net.minecraft.storage.ReadView readView)
      Specified by:
      readData in interface org.ladysnake.cca.api.v3.component.Component
    • writeData

      public void writeData(net.minecraft.storage.WriteView writeView)
      Specified by:
      writeData in interface org.ladysnake.cca.api.v3.component.Component
    • writeSyncPacket

      public void writeSyncPacket(net.minecraft.network.RegistryByteBuf buf, net.minecraft.server.network.ServerPlayerEntity recipient)
      Specified by:
      writeSyncPacket in interface org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent
      Specified by:
      writeSyncPacket in interface org.ladysnake.cca.api.v3.component.sync.ComponentPacketWriter
    • applySyncPacket

      public void applySyncPacket(net.minecraft.network.RegistryByteBuf buf)
      Specified by:
      applySyncPacket in interface org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent
    • shouldSyncWith

      public boolean shouldSyncWith(net.minecraft.server.network.ServerPlayerEntity player)
      Specified by:
      shouldSyncWith in interface org.ladysnake.cca.api.v3.component.sync.AutoSyncedComponent
      Specified by:
      shouldSyncWith in interface org.ladysnake.cca.api.v3.component.sync.PlayerSyncPredicate
    • isRequiredOnClient

      public boolean isRequiredOnClient()
      Specified by:
      isRequiredOnClient in interface org.ladysnake.cca.api.v3.component.sync.PlayerSyncPredicate