Skip to content

Commit

Permalink
Make CustomName no longer deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Dec 13, 2023
1 parent d68705d commit 42040e6
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,16 @@ public class EntityValues extends AbstractValues
{
public final SingleValue<Byte> GENERAL = getSingle((byte)0);
public final SingleValue<Integer> AIR_TICKS = getSingle(0);

@Deprecated
public final SingleValue<Optional<Component>> CUSTOMNAME = getSingle(Optional.of(Component.empty()));

public final SingleValue<Boolean> CUSTOMNAME_VISIBLE = getSingle(false);
public final SingleValue<Optional<Component>> CUSTOM_NAME = getSingle(Optional.of(Component.empty()));
public final SingleValue<Boolean> CUSTOM_NAME_VISIBLE = getSingle(false);
public final SingleValue<Boolean> SILENT = getSingle(false);
public final SingleValue<Boolean> NO_GRAVITY = getSingle(false);
public final SingleValue<Pose> POSE = getSingle(Pose.STANDING);
public final SingleValue<Integer> FROZEN_TICKS = getSingle(0);

public EntityValues()
{
registerSingle(GENERAL, AIR_TICKS, CUSTOMNAME, CUSTOMNAME_VISIBLE, SILENT, NO_GRAVITY,
registerSingle(GENERAL, AIR_TICKS, CUSTOM_NAME, CUSTOM_NAME_VISIBLE, SILENT, NO_GRAVITY,
POSE, FROZEN_TICKS);
}
}

0 comments on commit 42040e6

Please sign in to comment.