@@ -18,7 +18,7 @@
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
public Chunk(World world, ProtoChunk protochunk) {
|
||||
this(world, protochunk.getPos(), protochunk.getBiomeIndex(), protochunk.p(), protochunk.n(), protochunk.o(), protochunk.q(), protochunk.getSections(), (Consumer) null);
|
||||
this(world, protochunk.getPos(), protochunk.getBiomeIndex(), protochunk.p(), protochunk.n(), protochunk.o(), protochunk.getInhabitedTime(), protochunk.getSections(), (Consumer) null);
|
||||
Iterator iterator = protochunk.y().iterator();
|
||||
@@ -138,6 +149,7 @@
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
iblockdata.onPlace(this.world, blockposition, iblockdata1, flag);
|
||||
}
|
||||
|
||||
@@ -382,7 +402,12 @@
|
||||
@@ -377,7 +397,12 @@
|
||||
|
||||
@Nullable
|
||||
public TileEntity a(BlockPosition blockposition, Chunk.EnumTileEntityState chunk_enumtileentitystate) {
|
||||
@@ -69,8 +69,8 @@
|
||||
|
||||
if (tileentity == null) {
|
||||
NBTTagCompound nbttagcompound = (NBTTagCompound) this.e.remove(blockposition);
|
||||
@@ -429,6 +454,13 @@
|
||||
tileentity1.V_();
|
||||
@@ -423,6 +448,13 @@
|
||||
tileentity1.ab_();
|
||||
}
|
||||
|
||||
+ // CraftBukkit start
|
||||
@@ -83,7 +83,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -478,6 +510,50 @@
|
||||
@@ -472,6 +504,50 @@
|
||||
|
||||
}
|
||||
|
||||
@@ -134,7 +134,16 @@
|
||||
public void markDirty() {
|
||||
this.s = true;
|
||||
}
|
||||
@@ -552,7 +628,7 @@
|
||||
@@ -525,7 +601,7 @@
|
||||
Iterator iterator = this.entitySlices[k].a(Entity.class).iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
- Entity entity = (Entity) iterator.next();
|
||||
+ T entity = (T) iterator.next(); // CraftBukkit - decompile error
|
||||
|
||||
if ((entitytypes == null || entity.getEntityType() == entitytypes) && entity.getBoundingBox().c(axisalignedbb) && predicate.test(entity)) {
|
||||
list.add(entity);
|
||||
@@ -546,7 +622,7 @@
|
||||
Iterator iterator = this.entitySlices[k].a(oclass).iterator();
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
@@ -143,7 +152,7 @@
|
||||
|
||||
if (t0.getBoundingBox().c(axisalignedbb) && (predicate == null || predicate.test(t0))) {
|
||||
list.add(t0);
|
||||
@@ -626,7 +702,7 @@
|
||||
@@ -620,7 +696,7 @@
|
||||
|
||||
@Override
|
||||
public boolean isNeedsSaving() {
|
||||
@@ -152,7 +161,7 @@
|
||||
}
|
||||
|
||||
public void d(boolean flag) {
|
||||
@@ -767,7 +843,7 @@
|
||||
@@ -761,7 +837,7 @@
|
||||
|
||||
public void B() {
|
||||
if (this.o instanceof ProtoChunkTickList) {
|
||||
@@ -161,7 +170,7 @@
|
||||
return this.getType(blockposition).getBlock();
|
||||
});
|
||||
this.o = TickListEmpty.b();
|
||||
@@ -777,7 +853,7 @@
|
||||
@@ -771,7 +847,7 @@
|
||||
}
|
||||
|
||||
if (this.p instanceof ProtoChunkTickList) {
|
||||
@@ -170,7 +179,7 @@
|
||||
return this.getFluid(blockposition).getType();
|
||||
});
|
||||
this.p = TickListEmpty.b();
|
||||
@@ -789,12 +865,12 @@
|
||||
@@ -783,12 +859,12 @@
|
||||
}
|
||||
|
||||
public void a(WorldServer worldserver) {
|
||||
|
||||
Reference in New Issue
Block a user