-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
50 deletions.
There are no files selected for viewing
43 changes: 0 additions & 43 deletions
43
src/main/java/com/github/alexthe666/iceandfire/block/BlockIafOre.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +0,0 @@ | ||
package com.github.alexthe666.iceandfire.block; | ||
|
||
import net.minecraft.core.BlockPos; | ||
import net.minecraft.server.level.ServerLevel; | ||
import net.minecraft.util.Mth; | ||
import net.minecraft.util.RandomSource; | ||
import net.minecraft.util.valueproviders.IntProvider; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.state.properties.NoteBlockInstrument; | ||
import net.minecraft.world.level.material.MapColor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
|
||
public class BlockIafOre extends Block { | ||
public Item itemBlock; | ||
|
||
public BlockIafOre(int toollevel, float hardness, float resistance) { | ||
super( | ||
Properties | ||
.of() | ||
.mapColor(MapColor.STONE) | ||
.instrument(NoteBlockInstrument.BASEDRUM) | ||
.strength(hardness, resistance) | ||
.requiresCorrectToolForDrops() | ||
); | ||
} | ||
|
||
@Override | ||
public void tryDropExperience(@NotNull ServerLevel level, @NotNull BlockPos pos, @NotNull ItemStack heldItem, @NotNull IntProvider amount) { | ||
super.tryDropExperience(level, pos, heldItem, amount); | ||
} | ||
|
||
|
||
// FIXME :: Unused -> popExperience(...) | ||
protected int getExperience(RandomSource rand) { | ||
if (this == IafBlockRegistry.SAPPHIRE_ORE.get()) { | ||
return Mth.nextInt(rand, 3, 7); | ||
} | ||
return 0; | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters