Utils ported

This commit is contained in:
Sebastian Hartte
2020-06-28 15:47:44 +02:00
parent 46955643b9
commit f5412152a4
132 changed files with 488 additions and 528 deletions
@@ -117,7 +117,7 @@ public class CableAnchorPart implements IPart {
}
@Override
public void onNeighborChanged(BlockView w, BlockPos pos, BlockPos neighbor) {
public void onneighborUpdate(BlockView w, BlockPos pos, BlockPos neighbor) {
}
@@ -193,7 +193,7 @@ public class CableAnchorPart implements IPart {
}
@Override
public void animateTick(final World world, final BlockPos pos, final Random r) {
public void randomDisplayTick(final World world, final BlockPos pos, final Random r) {
}
@@ -134,7 +134,7 @@ public abstract class SharedStorageBusPart extends UpgradeablePart
}
@Override
public void onNeighborChanged(BlockView w, BlockPos pos, BlockPos neighbor) {
public void onneighborUpdate(BlockView w, BlockPos pos, BlockPos neighbor) {
if (pos.offset(this.getSide().getFacing()).equals(neighbor)) {
this.resetCache(false);
}
@@ -255,7 +255,7 @@ public class StorageBusPart extends UpgradeablePart
}
@Override
public void onNeighborChanged(BlockView w, BlockPos pos, BlockPos neighbor) {
public void onneighborUpdate(BlockView w, BlockPos pos, BlockPos neighbor) {
if (pos.offset(this.getSide().getFacing()).equals(neighbor)) {
final BlockEntity te = w.getBlockEntity(neighbor);
@@ -103,7 +103,7 @@ public class ToggleBusPart extends BasicStatePart {
}
@Override
public void onNeighborChanged(BlockView w, BlockPos pos, BlockPos neighbor) {
public void onneighborUpdate(BlockView w, BlockPos pos, BlockPos neighbor) {
final boolean oldHasRedstone = this.hasRedstone;
this.hasRedstone = this.getHost().hasRedstone(this.getSide());