Files
MinecraftForge/patches/minecraft/net/minecraft/block/Blocks.java.patch
T
embeddedt ed3ac8a122 [1.16.5] Update more parts of the toolchain (#9825)
* ForgeGradle 6, Gradle 8.4, ASM 9.6
* Apply official mappings to patches (still using MCP classnames)
* Remove reference to SpecialSource in reobfJar-like tasks
* Backport modern MDK
* Rename TransformationMatrix methods to prevent reobf, add back vanilla name via coremod
2023-12-20 10:49:06 -08:00

37 lines
2.1 KiB
Diff

--- a/net/minecraft/block/Blocks.java
+++ b/net/minecraft/block/Blocks.java
@@ -25,6 +_,7 @@
import net.minecraft.world.IBlockReader;
import net.minecraft.world.gen.feature.Features;
[email protected]("minecraft")
public class Blocks {
public static final Block AIR = register("air", new AirBlock(AbstractBlock.Properties.of(Material.AIR).noCollission().noDrops().air()));
public static final Block STONE = register("stone", new Block(AbstractBlock.Properties.of(Material.STONE, MaterialColor.STONE).requiresCorrectToolForDrops().strength(1.5F, 6.0F)));
@@ -119,7 +_,7 @@
public static final Block GREEN_BED = register("green_bed", bed(DyeColor.GREEN));
public static final Block RED_BED = register("red_bed", bed(DyeColor.RED));
public static final Block BLACK_BED = register("black_bed", bed(DyeColor.BLACK));
- public static final Block POWERED_RAIL = register("powered_rail", new PoweredRailBlock(AbstractBlock.Properties.of(Material.DECORATION).noCollission().strength(0.7F).sound(SoundType.METAL)));
+ public static final Block POWERED_RAIL = register("powered_rail", new PoweredRailBlock(AbstractBlock.Properties.of(Material.DECORATION).noCollission().strength(0.7F).sound(SoundType.METAL), true));
public static final Block DETECTOR_RAIL = register("detector_rail", new DetectorRailBlock(AbstractBlock.Properties.of(Material.DECORATION).noCollission().strength(0.7F).sound(SoundType.METAL)));
public static final Block STICKY_PISTON = register("sticky_piston", pistonBase(true));
public static final Block COBWEB = register("cobweb", new WebBlock(AbstractBlock.Properties.of(Material.WEB).noCollission().requiresCorrectToolForDrops().strength(4.0F)));
@@ -936,16 +_,5 @@
public static void rebuildCache() {
Block.BLOCK_STATE_REGISTRY.forEach(AbstractBlock.AbstractBlockState::initCache);
- }
-
- static {
- for(Block block : Registry.BLOCK) {
- for(BlockState blockstate : block.getStateDefinition().getPossibleStates()) {
- Block.BLOCK_STATE_REGISTRY.add(blockstate);
- }
-
- block.getLootTable();
- }
-
}
}