Class TemperatureStatusSettingsAttachment

java.lang.Object
com.github.thedeathlycow.thermoo.impl.neoforge.attachment.TemperatureStatusSettingsAttachment
All Implemented Interfaces:
com.github.thedeathlycow.thermoo.impl.ecs.TemperatureStatusSettingsComponent, net.neoforged.neoforge.common.util.ValueIOSerializable

public final class TemperatureStatusSettingsAttachment extends Object implements com.github.thedeathlycow.thermoo.impl.ecs.TemperatureStatusSettingsComponent, net.neoforged.neoforge.common.util.ValueIOSerializable
  • Constructor Summary

    Constructors
    Constructor
    Description
    TemperatureStatusSettingsAttachment(net.neoforged.neoforge.attachment.IAttachmentHolder holder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deserialize(net.minecraft.world.level.storage.ValueInput readView)
     
    net.minecraft.world.entity.LivingEntity
     
    Map<net.minecraft.resources.ResourceKey<com.github.thedeathlycow.thermoo.api.temperature.status.v2.TemperatureStatus>, com.github.thedeathlycow.thermoo.impl.ecs.Settings>
     
    @Nullable com.github.thedeathlycow.thermoo.impl.ecs.Settings
    getSettings(net.minecraft.core.Holder.Reference<com.github.thedeathlycow.thermoo.api.temperature.status.v2.TemperatureStatus> statusRef)
     
    void
    serialize(net.minecraft.world.level.storage.ValueOutput writeView)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.github.thedeathlycow.thermoo.impl.ecs.TemperatureStatusSettingsComponent

    isEffectEnabled, setEffectEnabled
  • Constructor Details

    • TemperatureStatusSettingsAttachment

      public TemperatureStatusSettingsAttachment(net.neoforged.neoforge.attachment.IAttachmentHolder holder)
  • Method Details

    • getSettings

      public Map<net.minecraft.resources.ResourceKey<com.github.thedeathlycow.thermoo.api.temperature.status.v2.TemperatureStatus>, com.github.thedeathlycow.thermoo.impl.ecs.Settings> getSettings()
      Specified by:
      getSettings in interface com.github.thedeathlycow.thermoo.impl.ecs.TemperatureStatusSettingsComponent
    • getProvider

      public net.minecraft.world.entity.LivingEntity getProvider()
      Specified by:
      getProvider in interface com.github.thedeathlycow.thermoo.impl.ecs.TemperatureStatusSettingsComponent
    • getSettings

      @Nullable public @Nullable com.github.thedeathlycow.thermoo.impl.ecs.Settings getSettings(net.minecraft.core.Holder.Reference<com.github.thedeathlycow.thermoo.api.temperature.status.v2.TemperatureStatus> statusRef)
      Specified by:
      getSettings in interface com.github.thedeathlycow.thermoo.impl.ecs.TemperatureStatusSettingsComponent
    • deserialize

      public void deserialize(net.minecraft.world.level.storage.ValueInput readView)
      Specified by:
      deserialize in interface net.neoforged.neoforge.common.util.ValueIOSerializable
    • serialize

      public void serialize(net.minecraft.world.level.storage.ValueOutput writeView)
      Specified by:
      serialize in interface net.neoforged.neoforge.common.util.ValueIOSerializable