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;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Builder setMarkerArmorStand() {
|
Builder setArmorStandMarker() {
|
||||||
setInvisible();
|
setInvisible();
|
||||||
packetByteBuffer.writeDataWatcherEntry(DataWatcherKey.ARMOR_STAND_STATUS, (byte) (0x01 | 0x08 | 0x10)); // Small, no base plate, marker
|
packetByteBuffer.writeDataWatcherEntry(DataWatcherKey.ARMOR_STAND_STATUS, (byte) (0x01 | 0x08 | 0x10)); // Small, no base plate, marker
|
||||||
return this;
|
return this;
|
||||||
@ -75,7 +75,7 @@ class EntityMetadataNMSPacket extends VersionNMSPacket {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Builder setSmallSlime() {
|
Builder setSlimeSmall() {
|
||||||
packetByteBuffer.writeDataWatcherEntry(DataWatcherKey.SLIME_SIZE, 1);
|
packetByteBuffer.writeDataWatcherEntry(DataWatcherKey.SLIME_SIZE, 1);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ class VersionNMSPacketList extends AbstractNMSPacketList {
|
|||||||
public void addArmorStandSpawnPackets(EntityID entityID, double locationX, double locationY, double locationZ) {
|
public void addArmorStandSpawnPackets(EntityID entityID, double locationX, double locationY, double locationZ) {
|
||||||
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.ARMOR_STAND, locationX, locationY, locationZ));
|
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.ARMOR_STAND, locationX, locationY, locationZ));
|
||||||
add(EntityMetadataNMSPacket.builder(entityID)
|
add(EntityMetadataNMSPacket.builder(entityID)
|
||||||
.setMarkerArmorStand()
|
.setArmorStandMarker()
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -33,7 +33,7 @@ class VersionNMSPacketList extends AbstractNMSPacketList {
|
|||||||
public void addArmorStandSpawnPackets(EntityID entityID, double locationX, double locationY, double locationZ, String customName) {
|
public void addArmorStandSpawnPackets(EntityID entityID, double locationX, double locationY, double locationZ, String customName) {
|
||||||
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.ARMOR_STAND, locationX, locationY, locationZ));
|
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.ARMOR_STAND, locationX, locationY, locationZ));
|
||||||
add(EntityMetadataNMSPacket.builder(entityID)
|
add(EntityMetadataNMSPacket.builder(entityID)
|
||||||
.setMarkerArmorStand()
|
.setArmorStandMarker()
|
||||||
.setCustomName(customName)
|
.setCustomName(customName)
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
@ -43,7 +43,7 @@ class VersionNMSPacketList extends AbstractNMSPacketList {
|
|||||||
public void addArmorStandSpawnPackets(EntityID entityID, double locationX, double locationY, double locationZ, IndividualCustomName individualCustomName) {
|
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 EntityLivingSpawnNMSPacket(entityID, EntityTypeID.ARMOR_STAND, locationX, locationY, locationZ));
|
||||||
add(new IndividualNMSPacket(player -> EntityMetadataNMSPacket.builder(entityID)
|
add(new IndividualNMSPacket(player -> EntityMetadataNMSPacket.builder(entityID)
|
||||||
.setMarkerArmorStand()
|
.setArmorStandMarker()
|
||||||
.setCustomName(individualCustomName.get(player))
|
.setCustomName(individualCustomName.get(player))
|
||||||
.build()
|
.build()
|
||||||
));
|
));
|
||||||
@ -87,7 +87,7 @@ class VersionNMSPacketList extends AbstractNMSPacketList {
|
|||||||
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.SLIME, locationX, locationY, locationZ));
|
add(new EntityLivingSpawnNMSPacket(entityID, EntityTypeID.SLIME, locationX, locationY, locationZ));
|
||||||
add(EntityMetadataNMSPacket.builder(entityID)
|
add(EntityMetadataNMSPacket.builder(entityID)
|
||||||
.setInvisible()
|
.setInvisible()
|
||||||
.setSmallSlime() // Required for a correct client-side collision box
|
.setSlimeSmall() // Required for a correct client-side collision box
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user