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