mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Why do sideonly methods exist? Fix #2389
This commit is contained in:
1 parent
0e2a84daa1
commit
d16345db41
6 files changed
+7
-5
No files matched your search
@@ -72,7 +72,7 @@ public class TilePylon extends TileEntity implements ITickable {
|
||||
|
||||
Block block = world.getBlockState(pos.down()).getBlock();
|
||||
if(block == ModBlocks.flower || block == ModBlocks.shinyFlower) {
|
||||
int hex = world.getBlockState(pos.down()).getValue(BotaniaStateProps.COLOR).getColorValue();
|
||||
int hex = world.getBlockState(pos.down()).getValue(BotaniaStateProps.COLOR).colorValue;
|
||||
int r = (hex & 0xFF0000) >> 16;
|
||||
int g = (hex & 0xFF00) >> 8;
|
||||
int b = hex & 0xFF;
|
||||
|
||||
@@ -52,7 +52,7 @@ public class EntitySignalFlare extends Entity {
|
||||
|
||||
int color = getColor();
|
||||
if(color < 16 && color >= 0) {
|
||||
int hex = EnumDyeColor.byMetadata(color).getColorValue();
|
||||
int hex = EnumDyeColor.byMetadata(color).colorValue;
|
||||
int r = (hex & 0xFF0000) >> 16;
|
||||
int g = (hex & 0xFF00) >> 8;
|
||||
int b = hex & 0xFF;
|
||||
|
||||
@@ -232,7 +232,7 @@ public class ItemLens extends ItemMod implements ILensControl, ICompositableLens
|
||||
if(storedColor == 16)
|
||||
return Color.HSBtoRGB(Botania.proxy.getWorldElapsedTicks() * 2 % 360 / 360F, 1F, 1F);
|
||||
|
||||
return EnumDyeColor.byMetadata(storedColor).getColorValue();
|
||||
return EnumDyeColor.byMetadata(storedColor).colorValue;
|
||||
}
|
||||
|
||||
public static int getStoredColor(ItemStack stack) {
|
||||
|
||||
@@ -54,7 +54,7 @@ public class LensFlare extends Lens {
|
||||
if(storedColor == 16) {
|
||||
hex = Color.HSBtoRGB(tile.getWorld().getTotalWorldTime() * 2 % 360 / 360F, 1F, 1F);
|
||||
} else if(storedColor >= 0) {
|
||||
hex = EnumDyeColor.byMetadata(storedColor).getColorValue();
|
||||
hex = EnumDyeColor.byMetadata(storedColor).colorValue;
|
||||
}
|
||||
|
||||
float r = ((hex & 0xFF0000) >> 16) / 255F;
|
||||
|
||||
@@ -96,6 +96,6 @@ public class ItemPetal extends Item16Colors implements IFlowerComponent {
|
||||
|
||||
@Override
|
||||
public int getParticleColor(ItemStack stack) {
|
||||
return EnumDyeColor.byMetadata(stack.getItemDamage()).getColorValue();
|
||||
return EnumDyeColor.byMetadata(stack.getItemDamage()).colorValue;
|
||||
}
|
||||
}
|
||||
@@ -47,3 +47,5 @@ public net.minecraft.advancements.CriteriaTriggers func_192118_a(Lnet/minecraft/
|
||||
public net.minecraft.item.ItemTool field_77862_b # toolMaterial
|
||||
|
||||
public net.minecraft.client.multiplayer.ClientAdvancementManager field_192803_d # advancementToProgress
|
||||
|
||||
public net.minecraft.item.EnumDyeColor field_193351_w # colorValue
|
||||
Reference in new issue
Block a user