Dieser Commit ist enthalten in:
Ursprung
c9b15b6aa6
Commit
e904a296b5
@ -62,6 +62,7 @@ public class REntity {
|
||||
private FlatteningWrapper.EntityPose pose = FlatteningWrapper.EntityPose.NORMAL;
|
||||
private boolean bowDrawn;
|
||||
private boolean noGravity;
|
||||
private boolean isGlowing;
|
||||
private int fireTick;
|
||||
@Getter
|
||||
private String displayName;
|
||||
@ -86,6 +87,7 @@ public class REntity {
|
||||
this.itemSlots = entityType == EntityType.PLAYER ? new HashMap<>() : null;
|
||||
|
||||
this.noGravity = false;
|
||||
this.isGlowing = false;
|
||||
|
||||
server.addEntity(this);
|
||||
}
|
||||
@ -196,6 +198,13 @@ public class REntity {
|
||||
server.updateEntity(this,getDataWatcherPacket(noGravityDataWatcher,noGravity));
|
||||
}
|
||||
|
||||
public void setGlowing(boolean glowing) {
|
||||
this.isGlowing = glowing;
|
||||
if(Core.getVersion() > 8) {
|
||||
server.updateEntity(this,getDataWatcherPacket(entityStatusWatcher,getEntityStatus()));
|
||||
}
|
||||
}
|
||||
|
||||
private static int spawnPacketOffset() {
|
||||
switch (Core.getVersion()) {
|
||||
case 8:
|
||||
@ -288,6 +297,8 @@ public class REntity {
|
||||
status |= 0x10;
|
||||
if(invisible)
|
||||
status |= 0x20;
|
||||
if(Core.getVersion() > 8 && isGlowing)
|
||||
status |= 0x40;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren