本文整理匯總了Java中net.minecraft.client.particle.EntityFX.setRBGColorF方法的典型用法代碼示例。如果您正苦於以下問題:Java EntityFX.setRBGColorF方法的具體用法?Java EntityFX.setRBGColorF怎麽用?Java EntityFX.setRBGColorF使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.client.particle.EntityFX
的用法示例。
在下文中一共展示了EntityFX.setRBGColorF方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: updateReddustFX
import net.minecraft.client.particle.EntityFX; //導入方法依賴的package包/類
public static void updateReddustFX(EntityFX p_updateReddustFX_0_, IBlockAccess p_updateReddustFX_1_, double p_updateReddustFX_2_, double p_updateReddustFX_4_, double p_updateReddustFX_6_)
{
if (redstoneColors != null)
{
IBlockState iblockstate = p_updateReddustFX_1_.getBlockState(new BlockPos(p_updateReddustFX_2_, p_updateReddustFX_4_, p_updateReddustFX_6_));
int i = getRedstoneLevel(iblockstate, 15);
int j = redstoneColors.getColor(i);
int k = j >> 16 & 255;
int l = j >> 8 & 255;
int i1 = j & 255;
float f = (float)k / 255.0F;
float f1 = (float)l / 255.0F;
float f2 = (float)i1 / 255.0F;
p_updateReddustFX_0_.setRBGColorF(f, f1, f2);
}
}
示例2: updateReddustFX
import net.minecraft.client.particle.EntityFX; //導入方法依賴的package包/類
public static void updateReddustFX(EntityFX p_updateReddustFX_0_, IBlockAccess p_updateReddustFX_1_, double p_updateReddustFX_2_, double p_updateReddustFX_4_, double p_updateReddustFX_6_)
{
if (redstoneColors != null)
{
IBlockState iblockstate = p_updateReddustFX_1_.getBlockState(new BlockPos(p_updateReddustFX_2_, p_updateReddustFX_4_, p_updateReddustFX_6_));
int i = getRedstoneLevel(iblockstate, 15);
int j = getRedstoneColor(i);
if (j != -1)
{
int k = j >> 16 & 255;
int l = j >> 8 & 255;
int i1 = j & 255;
float f = (float)k / 255.0F;
float f1 = (float)l / 255.0F;
float f2 = (float)i1 / 255.0F;
p_updateReddustFX_0_.setRBGColorF(f, f1, f2);
}
}
}
示例3: updateWaterFX
import net.minecraft.client.particle.EntityFX; //導入方法依賴的package包/類
public static void updateWaterFX(EntityFX p_updateWaterFX_0_, IBlockAccess p_updateWaterFX_1_, double p_updateWaterFX_2_, double p_updateWaterFX_4_, double p_updateWaterFX_6_)
{
if (waterColors != null)
{
int i = getFluidColor(Blocks.water, p_updateWaterFX_1_, new BlockPos(p_updateWaterFX_2_, p_updateWaterFX_4_, p_updateWaterFX_6_));
int j = i >> 16 & 255;
int k = i >> 8 & 255;
int l = i & 255;
float f = (float)j / 255.0F;
float f1 = (float)k / 255.0F;
float f2 = (float)l / 255.0F;
if (particleWaterColor >= 0)
{
int i1 = particleWaterColor >> 16 & 255;
int j1 = particleWaterColor >> 8 & 255;
int k1 = particleWaterColor & 255;
f *= (float)i1 / 255.0F;
f1 *= (float)j1 / 255.0F;
f2 *= (float)k1 / 255.0F;
}
p_updateWaterFX_0_.setRBGColorF(f, f1, f2);
}
}
示例4: updatePortalFX
import net.minecraft.client.particle.EntityFX; //導入方法依賴的package包/類
public static void updatePortalFX(EntityFX p_updatePortalFX_0_)
{
if (particlePortalColor >= 0)
{
int i = particlePortalColor;
int j = i >> 16 & 255;
int k = i >> 8 & 255;
int l = i & 255;
float f = (float)j / 255.0F;
float f1 = (float)k / 255.0F;
float f2 = (float)l / 255.0F;
p_updatePortalFX_0_.setRBGColorF(f, f1, f2);
}
}
示例5: updateMyceliumFX
import net.minecraft.client.particle.EntityFX; //導入方法依賴的package包/類
public static void updateMyceliumFX(EntityFX p_updateMyceliumFX_0_)
{
if (myceliumParticleColors != null)
{
int i = myceliumParticleColors.getColorRandom();
int j = i >> 16 & 255;
int k = i >> 8 & 255;
int l = i & 255;
float f = (float)j / 255.0F;
float f1 = (float)k / 255.0F;
float f2 = (float)l / 255.0F;
p_updateMyceliumFX_0_.setRBGColorF(f, f1, f2);
}
}
示例6: updateWaterFX
import net.minecraft.client.particle.EntityFX; //導入方法依賴的package包/類
public static void updateWaterFX(EntityFX p_updateWaterFX_0_, IBlockAccess p_updateWaterFX_1_, double p_updateWaterFX_2_, double p_updateWaterFX_4_, double p_updateWaterFX_6_)
{
if (waterColors != null || blockColormaps != null)
{
BlockPos blockpos = new BlockPos(p_updateWaterFX_2_, p_updateWaterFX_4_, p_updateWaterFX_6_);
RenderEnv renderenv = RenderEnv.getInstance(p_updateWaterFX_1_, BLOCK_STATE_WATER, blockpos);
int i = getFluidColor(p_updateWaterFX_1_, BLOCK_STATE_WATER, blockpos, renderenv);
int j = i >> 16 & 255;
int k = i >> 8 & 255;
int l = i & 255;
float f = (float)j / 255.0F;
float f1 = (float)k / 255.0F;
float f2 = (float)l / 255.0F;
if (particleWaterColor >= 0)
{
int i1 = particleWaterColor >> 16 & 255;
int j1 = particleWaterColor >> 8 & 255;
int k1 = particleWaterColor & 255;
f *= (float)i1 / 255.0F;
f1 *= (float)j1 / 255.0F;
f2 *= (float)k1 / 255.0F;
}
p_updateWaterFX_0_.setRBGColorF(f, f1, f2);
}
}
示例7: updateMyceliumFX
import net.minecraft.client.particle.EntityFX; //導入方法依賴的package包/類
public static void updateMyceliumFX(EntityFX p_updateMyceliumFX_0_)
{
if (myceliumParticleColors != null)
{
int i = myceliumParticleColors[random.nextInt(myceliumParticleColors.length)];
int j = i >> 16 & 255;
int k = i >> 8 & 255;
int l = i & 255;
float f = (float)j / 255.0F;
float f1 = (float)k / 255.0F;
float f2 = (float)l / 255.0F;
p_updateMyceliumFX_0_.setRBGColorF(f, f1, f2);
}
}