[Change] Have behaviour Builder for non -tickable leaves
This commit is contained in:
parent
80f01581eb
commit
5dd658c2c5
1 changed files with 8 additions and 2 deletions
|
@ -100,13 +100,15 @@ public class BehaviourBuilders {
|
|||
public static BlockBehaviour.Properties createLeaves() {
|
||||
return createLeaves(MapColor.PLANT, true);
|
||||
}
|
||||
public static BlockBehaviour.Properties createStaticLeaves() {
|
||||
return createStaticLeaves(MapColor.PLANT, true);
|
||||
}
|
||||
|
||||
public static BlockBehaviour.Properties createLeaves(MapColor color, boolean flammable) {
|
||||
public static BlockBehaviour.Properties createStaticLeaves(MapColor color, boolean flammable) {
|
||||
final BlockBehaviour.Properties p = BlockBehaviour.Properties
|
||||
.of()
|
||||
.mapColor(color)
|
||||
.strength(0.2f)
|
||||
.randomTicks()
|
||||
.noOcclusion()
|
||||
.isValidSpawn(Blocks::ocelotOrParrot)
|
||||
.isSuffocating(Blocks::never)
|
||||
|
@ -120,6 +122,10 @@ public class BehaviourBuilders {
|
|||
return p;
|
||||
}
|
||||
|
||||
public static BlockBehaviour.Properties createLeaves(MapColor color, boolean flammable) {
|
||||
return createStaticLeaves(color, flammable).randomTicks();
|
||||
}
|
||||
|
||||
public static BlockBehaviour.Properties createCactus(MapColor color, boolean flammable) {
|
||||
final BlockBehaviour.Properties p = BlockBehaviour.Properties
|
||||
.of()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue