Class DisplayLanternBlockEntity.Occupant
java.lang.Object
net.frozenblock.wilderwild.block.entity.DisplayLanternBlockEntity.Occupant
- Enclosing class:
DisplayLanternBlockEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final com.mojang.serialization.Codec<DisplayLanternBlockEntity.Occupant> booleanstatic final com.mojang.serialization.Codec<List<DisplayLanternBlockEntity.Occupant>> net.minecraft.world.phys.Vec3booleandouble -
Constructor Summary
ConstructorsConstructorDescriptionOccupant(@NotNull net.minecraft.world.phys.Vec3 pos, @NotNull FireflyColor color, @NotNull String customName, boolean flickers, int age, double y) -
Method Summary
-
Field Details
-
CODEC
-
LIST_CODEC
public static final com.mojang.serialization.Codec<List<DisplayLanternBlockEntity.Occupant>> LIST_CODEC -
pos
public net.minecraft.world.phys.Vec3 pos -
color
-
customName
-
flickers
public boolean flickers -
age
public int age -
y
public double y -
wasNamedNectar
public boolean wasNamedNectar
-
-
Constructor Details
-
Occupant
public Occupant(@NotNull @NotNull net.minecraft.world.phys.Vec3 pos, @NotNull @NotNull FireflyColor color, @NotNull @NotNull String customName, boolean flickers, int age, double y)
-
-
Method Details
-
tick
public void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
getPos
@NotNull public @NotNull net.minecraft.world.phys.Vec3 getPos() -
getColor
-
getCustomName
-
getFlickers
public boolean getFlickers() -
getAge
public int getAge() -
getY
public double getY()
-