More API update

This commit is contained in:
paulevsGitch 2020-10-29 00:40:49 +03:00
parent f3e0a6eac0
commit b13da60a35
13 changed files with 13 additions and 13 deletions

View file

@ -57,7 +57,7 @@ public class BlockDoublePlant extends BlockBaseNotFull implements IRenderTypeabl
super(FabricBlockSettings.of(Material.PLANT)
.breakByTool(FabricToolTags.SHEARS)
.sounds(BlockSoundGroup.WET_GRASS)
.lightLevel((state) -> { return state.get(TOP) ? light : 0; })
.luminance((state) -> { return state.get(TOP) ? light : 0; })
.breakByHand(true)
.noCollision());
this.setDefaultState(this.stateManager.getDefaultState().with(TOP, false));

View file

@ -46,7 +46,7 @@ public abstract class BlockFeatureSapling extends BlockBaseNotFull implements Fe
.collidable(false)
.breakInstantly()
.sounds(BlockSoundGroup.GRASS)
.lightLevel(light)
.luminance(light)
.ticksRandomly());
}

View file

@ -45,7 +45,7 @@ public class BlockGlowingFur extends BlockBaseNotFull implements IRenderTypeable
super(FabricBlockSettings.of(Material.REPLACEABLE_PLANT)
.breakByTool(FabricToolTags.SHEARS)
.sounds(BlockSoundGroup.WET_GRASS)
.lightLevel(15)
.luminance(15)
.breakByHand(true)
.noCollision());
this.drop = drop;

View file

@ -18,7 +18,7 @@ public class BlockLeaves extends LeavesBlock implements Patterned, IRenderTypeab
}
public BlockLeaves(MaterialColor color, int light) {
super(FabricBlockSettings.copyOf(Blocks.OAK_LEAVES).materialColor(color).lightLevel(light));
super(FabricBlockSettings.copyOf(Blocks.OAK_LEAVES).materialColor(color).luminance(light));
}
@Override

View file

@ -57,7 +57,7 @@ public class BlockPlant extends BlockBaseNotFull implements IRenderTypeable, Fer
super(FabricBlockSettings.of(replaceable ? Material.REPLACEABLE_PLANT : Material.PLANT)
.breakByTool(FabricToolTags.SHEARS)
.sounds(BlockSoundGroup.GRASS)
.lightLevel(light)
.luminance(light)
.breakByHand(true)
.noCollision());
}

View file

@ -29,7 +29,7 @@ public class BlockSimpleLeaves extends BlockBaseNotFull implements IRenderTypeab
.strength(0.2F)
.sounds(BlockSoundGroup.GRASS)
.nonOpaque()
.lightLevel(light)
.luminance(light)
.allowsSpawning((state, world, pos, type) -> { return false; })
.suffocates((state, world, pos) -> { return false; })
.blockVision((state, world, pos) -> { return false; })

View file

@ -54,7 +54,7 @@ public class BlockUnderwaterPlant extends BlockBaseNotFull implements IRenderTyp
super(FabricBlockSettings.of(Material.UNDERWATER_PLANT)
.breakByTool(FabricToolTags.SHEARS)
.sounds(BlockSoundGroup.WET_GRASS)
.lightLevel(light)
.luminance(light)
.breakByHand(true)
.noCollision());
}

View file

@ -53,7 +53,7 @@ public class BlockVine extends BlockBaseNotFull implements IRenderTypeable, Fert
super(FabricBlockSettings.of(Material.PLANT)
.breakByTool(FabricToolTags.SHEARS)
.sounds(BlockSoundGroup.GRASS)
.lightLevel((state) -> {
.luminance((state) -> {
return bottomOnly ? state.get(SHAPE) == TripleShape.BOTTOM ? light : 0 : light;
})
.breakByHand(true)