Utils ported
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user