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 Summary
ConstructorsConstructorDescriptionTemperatureEffectsComponent(net.minecraft.world.entity.LivingEntity provider) -
Method Summary
Modifier and TypeMethodDescriptionstatic TemperatureEffectsComponentget(net.minecraft.world.entity.LivingEntity entity) static @Nullable TemperatureEffectsComponentgetNullable(net.minecraft.world.entity.Entity entity) booleanisEffectEnabled(net.minecraft.core.Holder.Reference<TemperatureStatus> statusRef) voidreadData(net.minecraft.world.level.storage.ValueInput readView) voidbooleansetEffectEnabled(net.minecraft.core.Holder.Reference<TemperatureStatus> statusRef, boolean enabled) voidwriteData(net.minecraft.world.level.storage.ValueOutput writeView)
-
Constructor Details
-
TemperatureEffectsComponent
public TemperatureEffectsComponent(net.minecraft.world.entity.LivingEntity provider)
-
-
Method Details
-
get
-
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
-
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
-
serverTick
public void serverTick()- Specified by:
serverTickin interfaceorg.ladysnake.cca.api.v3.component.tick.ServerTickingComponent
-