mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2025-01-01 21:57:36 +01:00
Rename methods
This commit is contained in:
parent
2641ec7c0f
commit
7a6ea7b789
@ -49,7 +49,7 @@ class EntityMetadataNMSPacket extends VersionNMSPacket {
|
||||
return this;
|
||||
}
|
||||
|
||||
Builder setMarkerArmorStand() {
|
||||
Builder setArmorStandMarker() {
|
||||
setInvisible();
|
||||
packetByteBuffer.writeDataWatcherEntry(DataWatcherKey.ARMOR_STAND_STATUS, (byte) (0x01 | 0x08 | 0x10)); // Small, no base plate, marker
|
||||
return this;
|
||||
@ -75,7 +75,7 @@ class EntityMetadataNMSPacket extends VersionNMSPacket {
|
||||
return this;
|
||||
}
|
||||
|
||||
Builder setSmallSlime() {
|
||||
Builder setSlimeSmall() {
|
||||
packetByteBuffer.writeDataWatcherEntry(DataWatcherKey.SLIME_SIZE, 1);
|
||||
return this;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class VersionNMSPacketList extends AbstractNMSPacketList {
|
||||
public void addArmorStandSpawnPackets(EntityID entityID, double locationX, double locationY, double locationZ) {
|
||||
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.ARMOR_STAND, locationX, locationY, locationZ));
|
||||
add(EntityMetadataNMSPacket.builder(entityID)
|
||||
.setMarkerArmorStand()
|
||||
.setArmorStandMarker()
|
||||
.build()
|
||||
);
|
||||
}
|
||||
@ -33,7 +33,7 @@ class VersionNMSPacketList extends AbstractNMSPacketList {
|
||||
public void addArmorStandSpawnPackets(EntityID entityID, double locationX, double locationY, double locationZ, String customName) {
|
||||
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.ARMOR_STAND, locationX, locationY, locationZ));
|
||||
add(EntityMetadataNMSPacket.builder(entityID)
|
||||
.setMarkerArmorStand()
|
||||
.setArmorStandMarker()
|
||||
.setCustomName(customName)
|
||||
.build()
|
||||
);
|
||||
@ -43,7 +43,7 @@ class VersionNMSPacketList extends AbstractNMSPacketList {
|
||||
public void addArmorStandSpawnPackets(EntityID entityID, double locationX, double locationY, double locationZ, IndividualCustomName individualCustomName) {
|
||||
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.ARMOR_STAND, locationX, locationY, locationZ));
|
||||
add(new IndividualNMSPacket(player -> EntityMetadataNMSPacket.builder(entityID)
|
||||
.setMarkerArmorStand()
|
||||
.setArmorStandMarker()
|
||||
.setCustomName(individualCustomName.get(player))
|
||||
.build()
|
||||
));
|
||||
@ -87,7 +87,7 @@ class VersionNMSPacketList extends AbstractNMSPacketList {
|
||||
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.SLIME, locationX, locationY, locationZ));
|
||||
add(EntityMetadataNMSPacket.builder(entityID)
|
||||
.setInvisible()
|
||||
.setSmallSlime() // Required for a correct client-side collision box
|
||||
.setSlimeSmall() // Required for a correct client-side collision box
|
||||
.build()
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user