Interface IOnBlockPreviewEvent
- All Known Implementing Classes:
OnBlockPreviewEvent, OnBlockPreviewEvent.Post, OnBlockPreviewEvent.Pre
public interface IOnBlockPreviewEvent
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidfirePostEvent(PreviewMode previewMode, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet) static IOnBlockPreviewEventfirePreEvent(PreviewMode previewMode, boolean isCancelled, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet) @Nullable net.minecraft.world.level.block.entity.BlockEntitynet.minecraft.world.level.block.state.BlockStatenet.minecraft.core.BlockPosfloatnet.minecraft.client.player.LocalPlayercom.mojang.blaze3d.vertex.PoseStackbooleanvoidsetCancelledInternal(boolean canceled) voidsetPreviewMode(PreviewMode result)
-
Method Details
-
getPreviewMode
PreviewMode getPreviewMode() -
setPreviewMode
-
isCancelledInternal
boolean isCancelledInternal() -
setCancelledInternal
void setCancelledInternal(boolean canceled) -
getBlockState
net.minecraft.world.level.block.state.BlockState getBlockState() -
getCenter
net.minecraft.core.BlockPos getCenter() -
getPlayer
net.minecraft.client.player.LocalPlayer getPlayer() -
getBlockEntity
@Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity getBlockEntity() -
getPartialTick
float getPartialTick() -
getPoseStack
com.mojang.blaze3d.vertex.PoseStack getPoseStack() -
getBlocksForPreview
-
firePreEvent
static IOnBlockPreviewEvent firePreEvent(PreviewMode previewMode, boolean isCancelled, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet) -
firePostEvent
static void firePostEvent(PreviewMode previewMode, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet)
-