Package net.minecraft.block
Record Class BlockSetType
java.lang.Object
java.lang.Record
net.minecraft.block.BlockSetType
- Record Components:
name-canOpenByHand-canOpenByWindCharge-canButtonBeActivatedByArrows-pressurePlateSensitivity-soundType-doorClose-doorOpen-trapdoorClose-trapdoorOpen-pressurePlateClickOff-pressurePlateClickOn---
public record BlockSetType(String name, boolean canOpenByHand, boolean canOpenByWindCharge, boolean canButtonBeActivatedByArrows, BlockSetType.ActivationRule pressurePlateSensitivity, BlockSoundGroup soundType, SoundEvent doorClose, SoundEvent doorOpen, SoundEvent trapdoorClose, SoundEvent trapdoorOpen, SoundEvent pressurePlateClickOff, SoundEvent pressurePlateClickOn, SoundEvent buttonClickOff, SoundEvent buttonClickOn)
extends Record
- Mappings:
Namespace Name named net/minecraft/block/BlockSetTypeintermediary net/minecraft/class_8177official dtrnamed nameintermediary comp_1289official rnamed canOpenByHandintermediary comp_1471official snamed canOpenByWindChargeintermediary comp_2112official tnamed canButtonBeActivatedByArrowsintermediary comp_1972official unamed pressurePlateSensitivityintermediary comp_1973official vnamed soundTypeintermediary comp_1290official wnamed doorCloseintermediary comp_1291official xnamed doorOpenintermediary comp_1292official ynamed trapdoorCloseintermediary comp_1293official znamed trapdoorOpenintermediary comp_1294official Anamed pressurePlateClickOffintermediary comp_1295official Bnamed pressurePlateClickOnintermediary comp_1296official Cnamed buttonClickOffintermediary comp_1297official Dnamed buttonClickOnintermediary comp_1298official E
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BlockSetTypestatic final BlockSetTypestatic final BlockSetTypeprivate final SoundEventThe field for thebuttonClickOffrecord component.private final SoundEventThe field for thebuttonClickOnrecord component.private final booleanThe field for thecanButtonBeActivatedByArrowsrecord component.private final booleanThe field for thecanOpenByHandrecord component.private final booleanThe field for thecanOpenByWindChargerecord component.static final BlockSetTypestatic final com.mojang.serialization.Codec<BlockSetType> static final BlockSetTypestatic final BlockSetTypestatic final BlockSetTypeprivate final SoundEventThe field for thedoorCloserecord component.private final SoundEventThe field for thedoorOpenrecord component.static final BlockSetTypestatic final BlockSetTypestatic final BlockSetTypestatic final BlockSetTypeprivate final StringThe field for thenamerecord component.static final BlockSetTypestatic final BlockSetTypeprivate final SoundEventThe field for thepressurePlateClickOffrecord component.private final SoundEventThe field for thepressurePlateClickOnrecord component.private final BlockSetType.ActivationRuleThe field for thepressurePlateSensitivityrecord component.private final BlockSoundGroupThe field for thesoundTyperecord component.static final BlockSetTypestatic final BlockSetTypeprivate final SoundEventThe field for thetrapdoorCloserecord component.private final SoundEventThe field for thetrapdoorOpenrecord component.private static final Map<String, BlockSetType> static final BlockSetType -
Constructor Summary
ConstructorsConstructorDescriptionBlockSetType(String name) BlockSetType(String string, boolean bool, boolean bool2, boolean bool3, BlockSetType.ActivationRule activationRule, BlockSoundGroup blockSoundGroup, SoundEvent soundEvent, SoundEvent soundEvent2, SoundEvent soundEvent3, SoundEvent soundEvent4, SoundEvent soundEvent5, SoundEvent soundEvent6, SoundEvent soundEvent7, SoundEvent soundEvent8) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuttonClickOffrecord component.Returns the value of thebuttonClickOnrecord component.booleanReturns the value of thecanButtonBeActivatedByArrowsrecord component.booleanReturns the value of thecanOpenByHandrecord component.booleanReturns the value of thecanOpenByWindChargerecord component.Returns the value of thedoorCloserecord component.doorOpen()Returns the value of thedoorOpenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of thepressurePlateClickOffrecord component.Returns the value of thepressurePlateClickOnrecord component.Returns the value of thepressurePlateSensitivityrecord component.private static BlockSetTyperegister(BlockSetType blockSetType) Returns the value of thesoundTyperecord component.static Stream<BlockSetType> stream()final StringtoString()Returns a string representation of this record class.Returns the value of thetrapdoorCloserecord component.Returns the value of thetrapdoorOpenrecord component.
-
Field Details
-
name
The field for thenamerecord component. -
canOpenByHand
private final boolean canOpenByHandThe field for thecanOpenByHandrecord component. -
canOpenByWindCharge
private final boolean canOpenByWindChargeThe field for thecanOpenByWindChargerecord component. -
canButtonBeActivatedByArrows
private final boolean canButtonBeActivatedByArrowsThe field for thecanButtonBeActivatedByArrowsrecord component. -
pressurePlateSensitivity
The field for thepressurePlateSensitivityrecord component. -
soundType
The field for thesoundTyperecord component. -
doorClose
The field for thedoorCloserecord component. -
doorOpen
The field for thedoorOpenrecord component. -
trapdoorClose
The field for thetrapdoorCloserecord component. -
trapdoorOpen
The field for thetrapdoorOpenrecord component. -
pressurePlateClickOff
The field for thepressurePlateClickOffrecord component. -
pressurePlateClickOn
The field for thepressurePlateClickOnrecord component. -
buttonClickOff
The field for thebuttonClickOffrecord component. -
buttonClickOn
The field for thebuttonClickOnrecord component. -
VALUES
- Mappings:
Namespace Name Mixin selector named VALUESLnet/minecraft/block/BlockSetType;VALUES:Ljava/util/Map;intermediary field_46533Lnet/minecraft/class_8177;field_46533:Ljava/util/Map;official FLdtr;F:Ljava/util/Map;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/BlockSetType;CODEC:Lcom/mojang/serialization/Codec;intermediary field_46534Lnet/minecraft/class_8177;field_46534:Lcom/mojang/serialization/Codec;official aLdtr;a:Lcom/mojang/serialization/Codec;
-
IRON
- Mappings:
Namespace Name Mixin selector named IRONLnet/minecraft/block/BlockSetType;IRON:Lnet/minecraft/block/BlockSetType;intermediary field_42819Lnet/minecraft/class_8177;field_42819:Lnet/minecraft/class_8177;official bLdtr;b:Ldtr;
-
COPPER
- Mappings:
Namespace Name Mixin selector named COPPERLnet/minecraft/block/BlockSetType;COPPER:Lnet/minecraft/block/BlockSetType;intermediary field_47100Lnet/minecraft/class_8177;field_47100:Lnet/minecraft/class_8177;official cLdtr;c:Ldtr;
-
GOLD
- Mappings:
Namespace Name Mixin selector named GOLDLnet/minecraft/block/BlockSetType;GOLD:Lnet/minecraft/block/BlockSetType;intermediary field_42820Lnet/minecraft/class_8177;field_42820:Lnet/minecraft/class_8177;official dLdtr;d:Ldtr;
-
STONE
- Mappings:
Namespace Name Mixin selector named STONELnet/minecraft/block/BlockSetType;STONE:Lnet/minecraft/block/BlockSetType;intermediary field_42821Lnet/minecraft/class_8177;field_42821:Lnet/minecraft/class_8177;official eLdtr;e:Ldtr;
-
POLISHED_BLACKSTONE
- Mappings:
Namespace Name Mixin selector named POLISHED_BLACKSTONELnet/minecraft/block/BlockSetType;POLISHED_BLACKSTONE:Lnet/minecraft/block/BlockSetType;intermediary field_42822Lnet/minecraft/class_8177;field_42822:Lnet/minecraft/class_8177;official fLdtr;f:Ldtr;
-
OAK
- Mappings:
Namespace Name Mixin selector named OAKLnet/minecraft/block/BlockSetType;OAK:Lnet/minecraft/block/BlockSetType;intermediary field_42823Lnet/minecraft/class_8177;field_42823:Lnet/minecraft/class_8177;official gLdtr;g:Ldtr;
-
SPRUCE
- Mappings:
Namespace Name Mixin selector named SPRUCELnet/minecraft/block/BlockSetType;SPRUCE:Lnet/minecraft/block/BlockSetType;intermediary field_42824Lnet/minecraft/class_8177;field_42824:Lnet/minecraft/class_8177;official hLdtr;h:Ldtr;
-
BIRCH
- Mappings:
Namespace Name Mixin selector named BIRCHLnet/minecraft/block/BlockSetType;BIRCH:Lnet/minecraft/block/BlockSetType;intermediary field_42825Lnet/minecraft/class_8177;field_42825:Lnet/minecraft/class_8177;official iLdtr;i:Ldtr;
-
ACACIA
- Mappings:
Namespace Name Mixin selector named ACACIALnet/minecraft/block/BlockSetType;ACACIA:Lnet/minecraft/block/BlockSetType;intermediary field_42826Lnet/minecraft/class_8177;field_42826:Lnet/minecraft/class_8177;official jLdtr;j:Ldtr;
-
CHERRY
- Mappings:
Namespace Name Mixin selector named CHERRYLnet/minecraft/block/BlockSetType;CHERRY:Lnet/minecraft/block/BlockSetType;intermediary field_42827Lnet/minecraft/class_8177;field_42827:Lnet/minecraft/class_8177;official kLdtr;k:Ldtr;
-
JUNGLE
- Mappings:
Namespace Name Mixin selector named JUNGLELnet/minecraft/block/BlockSetType;JUNGLE:Lnet/minecraft/block/BlockSetType;intermediary field_42828Lnet/minecraft/class_8177;field_42828:Lnet/minecraft/class_8177;official lLdtr;l:Ldtr;
-
DARK_OAK
- Mappings:
Namespace Name Mixin selector named DARK_OAKLnet/minecraft/block/BlockSetType;DARK_OAK:Lnet/minecraft/block/BlockSetType;intermediary field_42829Lnet/minecraft/class_8177;field_42829:Lnet/minecraft/class_8177;official mLdtr;m:Ldtr;
-
CRIMSON
- Mappings:
Namespace Name Mixin selector named CRIMSONLnet/minecraft/block/BlockSetType;CRIMSON:Lnet/minecraft/block/BlockSetType;intermediary field_42830Lnet/minecraft/class_8177;field_42830:Lnet/minecraft/class_8177;official nLdtr;n:Ldtr;
-
WARPED
- Mappings:
Namespace Name Mixin selector named WARPEDLnet/minecraft/block/BlockSetType;WARPED:Lnet/minecraft/block/BlockSetType;intermediary field_42831Lnet/minecraft/class_8177;field_42831:Lnet/minecraft/class_8177;official oLdtr;o:Ldtr;
-
MANGROVE
- Mappings:
Namespace Name Mixin selector named MANGROVELnet/minecraft/block/BlockSetType;MANGROVE:Lnet/minecraft/block/BlockSetType;intermediary field_42832Lnet/minecraft/class_8177;field_42832:Lnet/minecraft/class_8177;official pLdtr;p:Ldtr;
-
BAMBOO
- Mappings:
Namespace Name Mixin selector named BAMBOOLnet/minecraft/block/BlockSetType;BAMBOO:Lnet/minecraft/block/BlockSetType;intermediary field_42833Lnet/minecraft/class_8177;field_42833:Lnet/minecraft/class_8177;official qLdtr;q:Ldtr;
-
-
Constructor Details
-
BlockSetType
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/BlockSetType;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_8177;<init>(Ljava/lang/String;)Vofficial <init>Ldtr;<init>(Ljava/lang/String;)V
-
BlockSetType
public BlockSetType(String string, boolean bool, boolean bool2, boolean bool3, BlockSetType.ActivationRule activationRule, BlockSoundGroup blockSoundGroup, SoundEvent soundEvent, SoundEvent soundEvent2, SoundEvent soundEvent3, SoundEvent soundEvent4, SoundEvent soundEvent5, SoundEvent soundEvent6, SoundEvent soundEvent7, SoundEvent soundEvent8)
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/block/BlockSetType;register(Lnet/minecraft/block/BlockSetType;)Lnet/minecraft/block/BlockSetType;intermediary method_49233Lnet/minecraft/class_8177;method_49233(Lnet/minecraft/class_8177;)Lnet/minecraft/class_8177;official aLdtr;a(Ldtr;)Ldtr;
-
stream
- Mappings:
Namespace Name Mixin selector named streamLnet/minecraft/block/BlockSetType;stream()Ljava/util/stream/Stream;intermediary method_49232Lnet/minecraft/class_8177;method_49232()Ljava/util/stream/Stream;official aLdtr;a()Ljava/util/stream/Stream;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
canOpenByHand
public boolean canOpenByHand()Returns the value of thecanOpenByHandrecord component.- Returns:
- the value of the
canOpenByHandrecord component
-
canOpenByWindCharge
public boolean canOpenByWindCharge()Returns the value of thecanOpenByWindChargerecord component.- Returns:
- the value of the
canOpenByWindChargerecord component
-
canButtonBeActivatedByArrows
public boolean canButtonBeActivatedByArrows()Returns the value of thecanButtonBeActivatedByArrowsrecord component.- Returns:
- the value of the
canButtonBeActivatedByArrowsrecord component
-
pressurePlateSensitivity
Returns the value of thepressurePlateSensitivityrecord component.- Returns:
- the value of the
pressurePlateSensitivityrecord component
-
soundType
Returns the value of thesoundTyperecord component.- Returns:
- the value of the
soundTyperecord component
-
doorClose
Returns the value of thedoorCloserecord component.- Returns:
- the value of the
doorCloserecord component
-
doorOpen
Returns the value of thedoorOpenrecord component.- Returns:
- the value of the
doorOpenrecord component
-
trapdoorClose
Returns the value of thetrapdoorCloserecord component.- Returns:
- the value of the
trapdoorCloserecord component
-
trapdoorOpen
Returns the value of thetrapdoorOpenrecord component.- Returns:
- the value of the
trapdoorOpenrecord component
-
pressurePlateClickOff
Returns the value of thepressurePlateClickOffrecord component.- Returns:
- the value of the
pressurePlateClickOffrecord component
-
pressurePlateClickOn
Returns the value of thepressurePlateClickOnrecord component.- Returns:
- the value of the
pressurePlateClickOnrecord component
-
buttonClickOff
Returns the value of thebuttonClickOffrecord component.- Returns:
- the value of the
buttonClickOffrecord component
-
buttonClickOn
Returns the value of thebuttonClickOnrecord component.- Returns:
- the value of the
buttonClickOnrecord component
-