More API update
This commit is contained in:
parent
f3e0a6eac0
commit
b13da60a35
13 changed files with 13 additions and 13 deletions
|
@ -37,7 +37,7 @@ public class AuroraCrystalBlock extends AbstractGlassBlock implements IRenderTyp
|
|||
.hardness(1F)
|
||||
.resistance(1F)
|
||||
.sounds(BlockSoundGroup.GLASS)
|
||||
.lightLevel(15)
|
||||
.luminance(15)
|
||||
.nonOpaque());
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ public class BlockBlueVineLantern extends BlockBase {
|
|||
public static final BooleanProperty NATURAL = BooleanProperty.of("natural");
|
||||
|
||||
public BlockBlueVineLantern() {
|
||||
super(FabricBlockSettings.of(Material.WOOD).breakByTool(FabricToolTags.AXES).sounds(BlockSoundGroup.WART_BLOCK).lightLevel(15));
|
||||
super(FabricBlockSettings.of(Material.WOOD).breakByTool(FabricToolTags.AXES).sounds(BlockSoundGroup.WART_BLOCK).luminance(15));
|
||||
this.setDefaultState(this.stateManager.getDefaultState().with(NATURAL, false));
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ public class BlockEndLily extends BlockUnderwaterPlant {
|
|||
.breakByTool(FabricToolTags.SHEARS)
|
||||
.sounds(BlockSoundGroup.WET_GRASS)
|
||||
.breakByHand(true)
|
||||
.lightLevel((state) -> { return state.get(SHAPE) == TripleShape.TOP ? 13 : 0; })
|
||||
.luminance((state) -> { return state.get(SHAPE) == TripleShape.TOP ? 13 : 0; })
|
||||
.noCollision());
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ public class BlockEndLotusFlower extends BlockPlant {
|
|||
private static final VoxelShape SHAPE_COLLISION = Block.createCuboidShape(0, 0, 0, 16, 2, 16);
|
||||
|
||||
public BlockEndLotusFlower() {
|
||||
super(FabricBlockSettings.of(Material.PLANT).nonOpaque().lightLevel(15));
|
||||
super(FabricBlockSettings.of(Material.PLANT).nonOpaque().luminance(15));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -8,6 +8,6 @@ import ru.betterend.blocks.basis.BlockBase;
|
|||
|
||||
public class BlockMossyGlowshroomHymenophore extends BlockBase {
|
||||
public BlockMossyGlowshroomHymenophore() {
|
||||
super(FabricBlockSettings.of(Material.WOOD).breakByTool(FabricToolTags.AXES).sounds(BlockSoundGroup.WART_BLOCK).lightLevel(15));
|
||||
super(FabricBlockSettings.of(Material.WOOD).breakByTool(FabricToolTags.AXES).sounds(BlockSoundGroup.WART_BLOCK).luminance(15));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -46,7 +46,7 @@ public abstract class BlockFeatureSapling extends BlockBaseNotFull implements Fe
|
|||
.collidable(false)
|
||||
.breakInstantly()
|
||||
.sounds(BlockSoundGroup.GRASS)
|
||||
.lightLevel(light)
|
||||
.luminance(light)
|
||||
.ticksRandomly());
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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; })
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue