Package net.minecraft.client.renderer
Class ScreenEffectRenderer
java.lang.Object
net.minecraft.client.renderer.ScreenEffectRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MultiBufferSource
static final int
private ItemStack
private float
private float
private int
private final Minecraft
private static final ResourceLocation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayItemActivation
(ItemStack pItem, RandomSource pRandom) private static org.apache.commons.lang3.tuple.Pair
<BlockState, BlockPos> getOverlayBlock
(Player p_110717_) private static BlockState
getViewBlockingState
(Player pPlayer) private static void
renderFire
(PoseStack pPoseStack, MultiBufferSource pBufferSource) static void
renderFluid
(Minecraft p_110726_, PoseStack p_110727_, MultiBufferSource p_383128_, ResourceLocation texture) private void
renderItemActivationAnimation
(PoseStack pPoseStack, float pPartialTick) void
renderScreenEffect
(boolean pSleeping, float pPartialTick) private static void
renderTex
(TextureAtlasSprite pTexture, PoseStack pPoseStack, MultiBufferSource pBufferSource) private static void
renderWater
(Minecraft pMinecraft, PoseStack pPoseStack, MultiBufferSource pBufferSource) void
void
tick()
-
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
-