-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from LordDeatHunter/master
Added anvils
- Loading branch information
Showing
196 changed files
with
1,303 additions
and
94 deletions.
There are no files selected for viewing
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
22 changes: 22 additions & 0 deletions
22
src/main/java/nourl/mythicmetals/mixin/AnvilScreenHandlerMixin.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package nourl.mythicmetals.mixin; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.screen.AnvilScreenHandler; | ||
import nourl.mythicmetals.blocks.MythicMetalsAnvils; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | ||
|
||
@Mixin(AnvilScreenHandler.class) | ||
public class AnvilScreenHandlerMixin { | ||
|
||
@Inject(method = "canUse", at = @At("HEAD"), cancellable = true) | ||
public void canUse(BlockState state, CallbackInfoReturnable<Boolean> cir) { | ||
if (MythicMetalsAnvils.ANVILS.contains(state.getBlock())) { | ||
cir.setReturnValue(true); | ||
cir.cancel(); | ||
} | ||
} | ||
|
||
} |
193 changes: 116 additions & 77 deletions
193
src/main/java/nourl/mythicmetals/registry/RegisterBlocks.java
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/aetherium_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/aetherium_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/aetherium_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/aetherium_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/aetherium_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/aquarium_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/aquarium_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/aquarium_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/aquarium_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/aquarium_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/argonium_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/argonium_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/argonium_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/argonium_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/argonium_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/banglum_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/banglum_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/banglum_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/banglum_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/banglum_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/brass_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/brass_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/brass_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/brass_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/brass_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/bronze_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/bronze_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/bronze_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/bronze_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/bronze_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/carmot_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/carmot_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/carmot_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/carmot_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/carmot_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/celestium_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/celestium_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/celestium_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/celestium_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/celestium_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/copper_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/copper_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/copper_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/copper_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/copper_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/discordium_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/discordium_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/discordium_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/discordium_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/discordium_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/durasteel_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/durasteel_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/durasteel_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/durasteel_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/durasteel_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/electrum_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/electrum_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/electrum_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/electrum_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/electrum_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/etherite_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/etherite_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/etherite_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/etherite_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/etherite_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/kyber_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/kyber_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/kyber_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/kyber_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/kyber_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/resources/assets/mythicmetals/blockstates/lutetium_anvil.json
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"variants": { | ||
"facing=east": { | ||
"model": "mythicmetals:block/lutetium_anvil", | ||
"y": 270 | ||
}, | ||
"facing=north": { | ||
"model": "mythicmetals:block/lutetium_anvil", | ||
"y": 180 | ||
}, | ||
"facing=south": { | ||
"model": "mythicmetals:block/lutetium_anvil" | ||
}, | ||
"facing=west": { | ||
"model": "mythicmetals:block/lutetium_anvil", | ||
"y": 90 | ||
} | ||
} | ||
} |
Oops, something went wrong.