Class TemperatureEffectsComponent

java.lang.Object
com.github.thedeathlycow.thermoo.impl.temperature.status.TemperatureEffectsComponent
All Implemented Interfaces:
org.ladysnake.cca.api.v3.component.Component, org.ladysnake.cca.api.v3.component.tick.ServerTickingComponent, org.ladysnake.cca.api.v8.component.CardinalComponent

public class TemperatureEffectsComponent extends Object implements org.ladysnake.cca.api.v3.component.Component, org.ladysnake.cca.api.v3.component.tick.ServerTickingComponent
  • Constructor Details

    • TemperatureEffectsComponent

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

    • get

      public static TemperatureEffectsComponent get(net.minecraft.world.entity.LivingEntity entity)
    • getNullable

      @Nullable public static @Nullable TemperatureEffectsComponent getNullable(net.minecraft.world.entity.Entity entity)
    • setEffectEnabled

      public boolean setEffectEnabled(net.minecraft.core.Holder.Reference<TemperatureStatus> statusRef, boolean enabled)
    • isEffectEnabled

      public boolean isEffectEnabled(net.minecraft.core.Holder.Reference<TemperatureStatus> statusRef)
    • readData

      public void readData(net.minecraft.world.level.storage.ValueInput readView)
      Specified by:
      readData in interface org.ladysnake.cca.api.v8.component.CardinalComponent
    • writeData

      public void writeData(net.minecraft.world.level.storage.ValueOutput writeView)
      Specified by:
      writeData in interface org.ladysnake.cca.api.v8.component.CardinalComponent
    • serverTick

      public void serverTick()
      Specified by:
      serverTick in interface org.ladysnake.cca.api.v3.component.tick.ServerTickingComponent