Application of Behaviours and Tags as replacement for Materials
This commit is contained in:
parent
6713e03088
commit
4bf32937c1
60 changed files with 237 additions and 350 deletions
|
@ -63,7 +63,7 @@ public class DragonflyEntity extends DespawnableAnimal implements FlyingAnimal {
|
|||
FlyingPathNavigation birdNavigation = new FlyingPathNavigation(this, world) {
|
||||
public boolean isStableDestination(BlockPos pos) {
|
||||
BlockState state = this.level.getBlockState(pos);
|
||||
return state.isAir() || !state.getMaterial().blocksMotion();
|
||||
return state.isAir() || !state.blocksMotion();
|
||||
}
|
||||
|
||||
public void tick() {
|
||||
|
|
|
@ -118,7 +118,7 @@ public class SilkMothEntity extends Animal implements FlyingAnimal {
|
|||
FlyingPathNavigation birdNavigation = new FlyingPathNavigation(this, world) {
|
||||
public boolean isStableDestination(BlockPos pos) {
|
||||
BlockState state = this.level.getBlockState(pos);
|
||||
return state.isAir() || !state.getMaterial().blocksMotion();
|
||||
return state.isAir() || !state.blocksMotion();
|
||||
}
|
||||
|
||||
public void tick() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue