geforkt von Mirrors/Paper
Add sun related API
== AT == public net.minecraft.world.entity.Mob isSunBurnTick()Z
Dieser Commit ist enthalten in:
Ursprung
5a43ef8127
Commit
a75d433b3e
@ -755,6 +755,13 @@ public class CraftWorld extends CraftRegionAccessor implements World {
|
||||
}
|
||||
}
|
||||
|
||||
// Paper start
|
||||
@Override
|
||||
public boolean isDayTime() {
|
||||
return getHandle().isDay();
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@Override
|
||||
public long getGameTime() {
|
||||
return this.world.levelData.getGameTime();
|
||||
|
@ -91,4 +91,11 @@ public abstract class CraftMob extends CraftLivingEntity implements Mob {
|
||||
public long getSeed() {
|
||||
return this.getHandle().lootTableSeed;
|
||||
}
|
||||
|
||||
// Paper start
|
||||
@Override
|
||||
public boolean isInDaylight() {
|
||||
return getHandle().isSunBurnTick();
|
||||
}
|
||||
// Paper end
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren