Uses of Enum Class
net.neoforged.neoforge.common.util.TriState
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of TriState in net.minecraft.client.resources.model
Modifier and TypeMethodDescriptionMultiPartBakedModel.useAmbientOcclusion
(BlockState state, ModelData modelData, RenderType renderType) WeightedBakedModel.useAmbientOcclusion
(BlockState state, ModelData modelData, RenderType renderType) -
Uses of TriState in net.neoforged.neoforge.client.event
Modifier and TypeMethodDescriptionRenderNameTagEvent.canRender()
Returns if the nameplate will render or not.Modifier and TypeMethodDescriptionvoid
RenderNameTagEvent.setCanRender
(TriState canRender) Changes if thecontent
of the nameplate will be rendered. -
Uses of TriState in net.neoforged.neoforge.client.extensions
Modifier and TypeMethodDescriptiondefault TriState
IBakedModelExtension.useAmbientOcclusion
(BlockState state, ModelData data, RenderType renderType) Controls the AO behavior for all quads of this model. -
Uses of TriState in net.neoforged.neoforge.client.model
Modifier and TypeMethodDescriptionBakedModelWrapper.useAmbientOcclusion
(BlockState state, ModelData data, RenderType renderType) -
Uses of TriState in net.neoforged.neoforge.common.util
-
Uses of TriState in net.neoforged.neoforge.event.entity.player
Modifier and TypeFieldDescriptionprivate TriState
ItemEntityPickupEvent.Pre.canPickup
private TriState
PlayerInteractEvent.LeftClickBlock.useBlock
private TriState
PlayerInteractEvent.RightClickBlock.useBlock
private TriState
PlayerInteractEvent.LeftClickBlock.useItem
private TriState
PlayerInteractEvent.RightClickBlock.useItem
Modifier and TypeMethodDescriptionItemEntityPickupEvent.Pre.canPickup()
Returns the current pickup state.PlayerInteractEvent.LeftClickBlock.getUseBlock()
PlayerInteractEvent.RightClickBlock.getUseBlock()
PlayerInteractEvent.LeftClickBlock.getUseItem()
PlayerInteractEvent.RightClickBlock.getUseItem()
Modifier and TypeMethodDescriptionvoid
ItemEntityPickupEvent.Pre.setCanPickup
(TriState state) Changes if the player may pickup the item.void
PlayerInteractEvent.LeftClickBlock.setUseBlock
(TriState triggerBlock) void
PlayerInteractEvent.RightClickBlock.setUseBlock
(TriState triggerBlock) FALSE:invalid reference
Block#use(BlockState, Level, BlockPos, Player, InteractionHand, BlockHitResult)
void
PlayerInteractEvent.LeftClickBlock.setUseItem
(TriState triggerItem) void
PlayerInteractEvent.RightClickBlock.setUseItem
(TriState triggerItem) FALSE: NeitherItem.useOn(UseOnContext)
orIItemExtension.onItemUseFirst(net.minecraft.world.item.ItemStack, net.minecraft.world.item.context.UseOnContext)
will be called.