Rename methods

This commit is contained in:
filoghost 2021-08-01 10:18:44 +02:00
parent 2641ec7c0f
commit 7a6ea7b789
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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()
);
}