Package net.minecraft.client.renderer
Class ScreenEffectRenderer
java.lang.Object
net.minecraft.client.renderer.ScreenEffectRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultiBufferSourcestatic final intprivate ItemStackprivate floatprivate floatprivate intprivate final MaterialSetprivate final Minecraftprivate static final ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionScreenEffectRenderer(Minecraft pMinecraft, MaterialSet pMaterials, MultiBufferSource pBufferSource) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayItemActivation(ItemStack pItem, RandomSource pRandom) private static org.apache.commons.lang3.tuple.Pair<BlockState, BlockPos> getOverlayBlock(Player p_110717_) private static BlockStategetViewBlockingState(Player pPlayer) private static voidrenderFire(PoseStack pPoseStack, MultiBufferSource pBufferSource, TextureAtlasSprite pSprite) static voidrenderFluid(Minecraft p_110726_, PoseStack p_110727_, MultiBufferSource p_383128_, ResourceLocation texture) private voidrenderItemActivationAnimation(PoseStack pPoseStack, float pPartialTick, SubmitNodeCollector pNodeCollector) voidrenderScreenEffect(boolean pSleeping, float pPartialTick, SubmitNodeCollector pNodeCollector) private static voidrenderTex(TextureAtlasSprite pTexture, PoseStack pPoseStack, MultiBufferSource pBufferSource) private static voidrenderWater(Minecraft pMinecraft, PoseStack pPoseStack, MultiBufferSource pBufferSource) voidvoidtick()
-
Field Details
-
UNDERWATER_LOCATION
-
minecraft
-
materials
-
bufferSource
-
ITEM_ACTIVATION_ANIMATION_LENGTH
public static final int ITEM_ACTIVATION_ANIMATION_LENGTH- See Also:
-
itemActivationItem
-
itemActivationTicks
private int itemActivationTicks -
itemActivationOffX
private float itemActivationOffX -
itemActivationOffY
private float itemActivationOffY
-
-
Constructor Details
-
ScreenEffectRenderer
public ScreenEffectRenderer(Minecraft pMinecraft, MaterialSet pMaterials, MultiBufferSource pBufferSource)
-
-
Method Details
-
tick
public void tick() -
renderScreenEffect
public void renderScreenEffect(boolean pSleeping, float pPartialTick, SubmitNodeCollector pNodeCollector) -
renderItemActivationAnimation
private void renderItemActivationAnimation(PoseStack pPoseStack, float pPartialTick, SubmitNodeCollector pNodeCollector) -
resetItemActivation
public void resetItemActivation() -
displayItemActivation
-
getViewBlockingState
-
getOverlayBlock
@Nullable private static org.apache.commons.lang3.tuple.Pair<BlockState,BlockPos> getOverlayBlock(Player p_110717_) -
renderTex
private static void renderTex(TextureAtlasSprite pTexture, PoseStack pPoseStack, MultiBufferSource pBufferSource) -
renderWater
private static void renderWater(Minecraft pMinecraft, PoseStack pPoseStack, MultiBufferSource pBufferSource) -
renderFluid
public static void renderFluid(Minecraft p_110726_, PoseStack p_110727_, MultiBufferSource p_383128_, ResourceLocation texture) -
renderFire
private static void renderFire(PoseStack pPoseStack, MultiBufferSource pBufferSource, TextureAtlasSprite pSprite)
-