Interface IRequirementsBlueprintAnchorBlock
public interface IRequirementsBlueprintAnchorBlock
Interface for block entities that are blueprint anchors and have specific requirements to be placed.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanareRequirementsMet(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player) Check if the requirements are met for:List<net.minecraft.network.chat.MutableComponent>getRequirements(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player) Get the list of requirements as chat components.
-
Method Details
-
getRequirements
List<net.minecraft.network.chat.MutableComponent> getRequirements(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player) Get the list of requirements as chat components.- Returns:
- List for display.
-
areRequirementsMet
boolean areRequirementsMet(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.core.BlockPos pos, net.minecraft.client.player.LocalPlayer player) Check if the requirements are met for:- Parameters:
level- the world.pos- the position.player- the player.- Returns:
- true if so.
-