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 Minecraftprivate static final ResourceLocation -
Constructor Summary
Constructors -
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) static voidrenderFluid(Minecraft p_110726_, PoseStack p_110727_, MultiBufferSource p_383128_, ResourceLocation texture) private voidrenderItemActivationAnimation(PoseStack pPoseStack, float pPartialTick) voidrenderScreenEffect(boolean pSleeping, float pPartialTick) private static voidrenderTex(TextureAtlasSprite pTexture, PoseStack pPoseStack, MultiBufferSource pBufferSource) private static voidrenderWater(Minecraft pMinecraft, PoseStack pPoseStack, MultiBufferSource pBufferSource) voidvoidtick()
-
Field Details
-
UNDERWATER_LOCATION
-
minecraft
-
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
-
-
Method Details
-
tick
public void tick() -
renderScreenEffect
public void renderScreenEffect(boolean pSleeping, float pPartialTick) -
renderItemActivationAnimation
-
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
-