本文整理汇总了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);
}
}