Class OnBlockPreviewEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
net.nikdo53.tinymultiblocklib.event.OnBlockPreviewEvent
net.nikdo53.tinymultiblocklib.event.OnBlockPreviewEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent, IOnBlockPreviewEvent
- Enclosing class:
OnBlockPreviewEvent
public static class OnBlockPreviewEvent.Pre
extends OnBlockPreviewEvent
implements net.neoforged.bus.api.ICancellableEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class OnBlockPreviewEvent
OnBlockPreviewEvent.Post, OnBlockPreviewEvent.Pre -
Constructor Summary
ConstructorsConstructorDescriptionPre(PreviewMode previewMode, boolean isCancelled, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet) -
Method Summary
Methods inherited from class OnBlockPreviewEvent
getBlockEntity, getBlocksForPreview, getBlockState, getCenter, getPartialTick, getPlayer, getPoseStack, getPreviewMode, setPreviewModeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
public Pre(PreviewMode previewMode, boolean isCancelled, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player, net.minecraft.world.level.block.entity.BlockEntity blockEntity, float partialTicks, com.mojang.blaze3d.vertex.PoseStack poseStack, Set<BlockLike> blockLikeSet)
-
-
Method Details
-
isCancelledInternal
public boolean isCancelledInternal()- Specified by:
isCancelledInternalin interfaceIOnBlockPreviewEvent- Overrides:
isCancelledInternalin classOnBlockPreviewEvent
-
setCancelledInternal
public void setCancelledInternal(boolean canceled) - Specified by:
setCancelledInternalin interfaceIOnBlockPreviewEvent- Overrides:
setCancelledInternalin classOnBlockPreviewEvent
-