Package net.minecraft.util.hit
Enum Class BlockHitResult.Type
- All Implemented Interfaces:
Serializable,Comparable<BlockHitResult.Type>,Constable
- Enclosing class:
- BlockHitResult
- Mappings:
Namespace Name official bbg$aintermediary net/minecraft/class_234$class_235named net/minecraft/util/hit/BlockHitResult$Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockHitResult.TypeReturns the enum constant of this class with the specified name.static BlockHitResult.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MISS
- Mappings:
Namespace Name Mixin selector official aLbbg$a;a:Lbbg$a;intermediary field_7608Lnet/minecraft/class_234$class_235;field_7608:Lnet/minecraft/class_234$class_235;named MISSLnet/minecraft/util/hit/BlockHitResult$Type;MISS:Lnet/minecraft/util/hit/BlockHitResult$Type;
-
BLOCK
- Mappings:
Namespace Name Mixin selector official bLbbg$a;b:Lbbg$a;intermediary field_7609Lnet/minecraft/class_234$class_235;field_7609:Lnet/minecraft/class_234$class_235;named BLOCKLnet/minecraft/util/hit/BlockHitResult$Type;BLOCK:Lnet/minecraft/util/hit/BlockHitResult$Type;
-
ENTITY
- Mappings:
Namespace Name Mixin selector official cLbbg$a;c:Lbbg$a;intermediary field_603Lnet/minecraft/class_234$class_235;field_603:Lnet/minecraft/class_234$class_235;named ENTITYLnet/minecraft/util/hit/BlockHitResult$Type;ENTITY:Lnet/minecraft/util/hit/BlockHitResult$Type;
-
-
Constructor Details
-
Type
private Type()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-