No Gravity #223
@ -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) {
|
||||
zOnlyKroks markierte diese Unterhaltung als gelöst
Veraltet
|
||||
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
IsGlowing gibts auch erst seit der 1.9?
Ist in der 1.9 dazu gekommen.