Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a bunch of disguise states for vanilla blocks and firestarter/d…
…rawbridge
- Loading branch information
Showing
17 changed files
with
209 additions
and
5 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
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/DrawbridgeAdvancedDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import slimeknights.tmechworks.common.blocks.DrawbridgeBlock; | ||
|
||
public class DrawbridgeAdvancedDisguiseState extends BasicDisguiseState<Boolean> { | ||
public DrawbridgeAdvancedDisguiseState() { | ||
super(DrawbridgeBlock.ADVANCED, false); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Boolean value) { | ||
return value ? 27 : 26; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/EyeDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class EyeDisguiseState extends BasicDisguiseState<Boolean> { | ||
public EyeDisguiseState() { | ||
super(BlockStateProperties.EYE, false); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Boolean value) { | ||
return value ? 23 : 22; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...in/java/slimeknights/tmechworks/api/disguisestate/FirestarterExtinguishDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import slimeknights.tmechworks.common.blocks.FirestarterBlock; | ||
|
||
public class FirestarterExtinguishDisguiseState extends BasicDisguiseState<Boolean> { | ||
public FirestarterExtinguishDisguiseState() { | ||
super(FirestarterBlock.EXTINGUISH, false); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Boolean value) { | ||
return value ? 7 : 6; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/HasBookDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class HasBookDisguiseState extends BasicDisguiseState<Boolean> { | ||
public HasBookDisguiseState() { | ||
super(BlockStateProperties.HAS_BOOK, false); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Boolean value) { | ||
return value ? 27 : 26; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/slimeknights/tmechworks/api/disguisestate/HoneyLevelDisguiseState.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 slimeknights.tmechworks.api.disguisestate; | ||
|
||
import com.google.common.collect.ImmutableSet; | ||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
import java.util.Collection; | ||
|
||
public class HoneyLevelDisguiseState extends BasicDisguiseState<Integer> { | ||
public HoneyLevelDisguiseState() { | ||
super(BlockStateProperties.HONEY_LEVEL, 1); | ||
} | ||
|
||
@Override | ||
public Collection<Integer> getAllowedValues() { | ||
return ImmutableSet.of(0, 5); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Integer value) { | ||
return value == 0 ? 24 : 25; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/LayersDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class LayersDisguiseState extends BasicDisguiseState<Integer> { | ||
public LayersDisguiseState() { | ||
super(BlockStateProperties.LAYERS_1_8, 1); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Integer value) { | ||
return 13 + value; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/slimeknights/tmechworks/api/disguisestate/LevelDisguiseState.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,16 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class LevelDisguiseState extends BasicDisguiseState<Integer> { | ||
public LevelDisguiseState() { | ||
super(BlockStateProperties.LEVEL_0_8, 1); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Integer value) { | ||
if(value == 0) | ||
return 26; | ||
return 13 + value; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/LitDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class LitDisguiseState extends BasicDisguiseState<Boolean> { | ||
public LitDisguiseState() { | ||
super(BlockStateProperties.LIT, false); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Boolean value) { | ||
return value ? 6 : 7; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/OpenDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class OpenDisguiseState extends BasicDisguiseState<Boolean> { | ||
public OpenDisguiseState() { | ||
super(BlockStateProperties.OPEN, false); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Boolean value) { | ||
return value ? 4 : 5; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/PicklesDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class PicklesDisguiseState extends BasicDisguiseState<Integer> { | ||
public PicklesDisguiseState() { | ||
super(BlockStateProperties.PICKLES_1_4, 1); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Integer value) { | ||
return 7 + value; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/PoweredDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class PoweredDisguiseState extends BasicDisguiseState<Boolean> { | ||
public PoweredDisguiseState() { | ||
super(BlockStateProperties.POWERED, false); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Boolean value) { | ||
return value ? 29 : 28; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/slimeknights/tmechworks/api/disguisestate/SnowyDisguiseState.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,14 @@ | ||
package slimeknights.tmechworks.api.disguisestate; | ||
|
||
import net.minecraft.state.properties.BlockStateProperties; | ||
|
||
public class SnowyDisguiseState extends BasicDisguiseState<Boolean> { | ||
public SnowyDisguiseState() { | ||
super(BlockStateProperties.SNOWY, false); | ||
} | ||
|
||
@Override | ||
public int getIconFor(Boolean value) { | ||
return value ? 6 : 7; | ||
} | ||
} |
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
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
Binary file modified
BIN
+1.4 KB
(160%)
src/resources/assets/tmechworks/textures/gui/disguise_states.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.