Package net.minecraft.block
Record Class BlockSetType
java.lang.Object
java.lang.Record
net.minecraft.block.BlockSetType
- Record Components:
name-canOpenByHand-soundType-doorClose-doorOpen-trapdoorClose-trapdoorOpen-pressurePlateClickOff-pressurePlateClickOn---
public record BlockSetType(String name, boolean canOpenByHand, BlockSoundGroup soundType, SoundEvent doorClose, SoundEvent doorOpen, SoundEvent trapdoorClose, SoundEvent trapdoorOpen, SoundEvent pressurePlateClickOff, SoundEvent pressurePlateClickOn, SoundEvent buttonClickOff, SoundEvent buttonClickOn)
extends Record
- Mappings:
Namespace Name official dcnintermediary net/minecraft/class_8177named net/minecraft/block/BlockSetTypeofficial pintermediary comp_1289named nameofficial qintermediary comp_1471named canOpenByHandofficial rintermediary comp_1290named soundTypeofficial sintermediary comp_1291named doorCloseofficial tintermediary comp_1292named doorOpenofficial uintermediary comp_1293named trapdoorCloseofficial vintermediary comp_1294named trapdoorOpenofficial wintermediary comp_1295named pressurePlateClickOffofficial xintermediary comp_1296named pressurePlateClickOnofficial yintermediary comp_1297named buttonClickOffofficial zintermediary comp_1298named buttonClickOn
-
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 thecanOpenByHandrecord component.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 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 Set<BlockSetType>static final BlockSetType -
Constructor Summary
ConstructorsConstructorDescriptionBlockSetType(String name) BlockSetType(String string, boolean bool, 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 thecanOpenByHandrecord 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.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. -
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 official ALdcn;A:Ljava/util/Set;intermediary field_42834Lnet/minecraft/class_8177;field_42834:Ljava/util/Set;named VALUESLnet/minecraft/block/BlockSetType;VALUES:Ljava/util/Set;
-
IRON
- Mappings:
Namespace Name Mixin selector official aLdcn;a:Ldcn;intermediary field_42819Lnet/minecraft/class_8177;field_42819:Lnet/minecraft/class_8177;named IRONLnet/minecraft/block/BlockSetType;IRON:Lnet/minecraft/block/BlockSetType;
-
GOLD
- Mappings:
Namespace Name Mixin selector official bLdcn;b:Ldcn;intermediary field_42820Lnet/minecraft/class_8177;field_42820:Lnet/minecraft/class_8177;named GOLDLnet/minecraft/block/BlockSetType;GOLD:Lnet/minecraft/block/BlockSetType;
-
STONE
- Mappings:
Namespace Name Mixin selector official cLdcn;c:Ldcn;intermediary field_42821Lnet/minecraft/class_8177;field_42821:Lnet/minecraft/class_8177;named STONELnet/minecraft/block/BlockSetType;STONE:Lnet/minecraft/block/BlockSetType;
-
POLISHED_BLACKSTONE
- Mappings:
Namespace Name Mixin selector official dLdcn;d:Ldcn;intermediary field_42822Lnet/minecraft/class_8177;field_42822:Lnet/minecraft/class_8177;named POLISHED_BLACKSTONELnet/minecraft/block/BlockSetType;POLISHED_BLACKSTONE:Lnet/minecraft/block/BlockSetType;
-
OAK
- Mappings:
Namespace Name Mixin selector official eLdcn;e:Ldcn;intermediary field_42823Lnet/minecraft/class_8177;field_42823:Lnet/minecraft/class_8177;named OAKLnet/minecraft/block/BlockSetType;OAK:Lnet/minecraft/block/BlockSetType;
-
SPRUCE
- Mappings:
Namespace Name Mixin selector official fLdcn;f:Ldcn;intermediary field_42824Lnet/minecraft/class_8177;field_42824:Lnet/minecraft/class_8177;named SPRUCELnet/minecraft/block/BlockSetType;SPRUCE:Lnet/minecraft/block/BlockSetType;
-
BIRCH
- Mappings:
Namespace Name Mixin selector official gLdcn;g:Ldcn;intermediary field_42825Lnet/minecraft/class_8177;field_42825:Lnet/minecraft/class_8177;named BIRCHLnet/minecraft/block/BlockSetType;BIRCH:Lnet/minecraft/block/BlockSetType;
-
ACACIA
- Mappings:
Namespace Name Mixin selector official hLdcn;h:Ldcn;intermediary field_42826Lnet/minecraft/class_8177;field_42826:Lnet/minecraft/class_8177;named ACACIALnet/minecraft/block/BlockSetType;ACACIA:Lnet/minecraft/block/BlockSetType;
-
CHERRY
- Mappings:
Namespace Name Mixin selector official iLdcn;i:Ldcn;intermediary field_42827Lnet/minecraft/class_8177;field_42827:Lnet/minecraft/class_8177;named CHERRYLnet/minecraft/block/BlockSetType;CHERRY:Lnet/minecraft/block/BlockSetType;
-
JUNGLE
- Mappings:
Namespace Name Mixin selector official jLdcn;j:Ldcn;intermediary field_42828Lnet/minecraft/class_8177;field_42828:Lnet/minecraft/class_8177;named JUNGLELnet/minecraft/block/BlockSetType;JUNGLE:Lnet/minecraft/block/BlockSetType;
-
DARK_OAK
- Mappings:
Namespace Name Mixin selector official kLdcn;k:Ldcn;intermediary field_42829Lnet/minecraft/class_8177;field_42829:Lnet/minecraft/class_8177;named DARK_OAKLnet/minecraft/block/BlockSetType;DARK_OAK:Lnet/minecraft/block/BlockSetType;
-
CRIMSON
- Mappings:
Namespace Name Mixin selector official lLdcn;l:Ldcn;intermediary field_42830Lnet/minecraft/class_8177;field_42830:Lnet/minecraft/class_8177;named CRIMSONLnet/minecraft/block/BlockSetType;CRIMSON:Lnet/minecraft/block/BlockSetType;
-
WARPED
- Mappings:
Namespace Name Mixin selector official mLdcn;m:Ldcn;intermediary field_42831Lnet/minecraft/class_8177;field_42831:Lnet/minecraft/class_8177;named WARPEDLnet/minecraft/block/BlockSetType;WARPED:Lnet/minecraft/block/BlockSetType;
-
MANGROVE
- Mappings:
Namespace Name Mixin selector official nLdcn;n:Ldcn;intermediary field_42832Lnet/minecraft/class_8177;field_42832:Lnet/minecraft/class_8177;named MANGROVELnet/minecraft/block/BlockSetType;MANGROVE:Lnet/minecraft/block/BlockSetType;
-
BAMBOO
- Mappings:
Namespace Name Mixin selector official oLdcn;o:Ldcn;intermediary field_42833Lnet/minecraft/class_8177;field_42833:Lnet/minecraft/class_8177;named BAMBOOLnet/minecraft/block/BlockSetType;BAMBOO:Lnet/minecraft/block/BlockSetType;
-
-
Constructor Details
-
BlockSetType
- Mappings:
Namespace Name Mixin selector official <init>Ldcn;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_8177;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/block/BlockSetType;<init>(Ljava/lang/String;)V
-
BlockSetType
public BlockSetType(String string, boolean bool, 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 official aLdcn;a(Ldcn;)Ldcn;intermediary method_49233Lnet/minecraft/class_8177;method_49233(Lnet/minecraft/class_8177;)Lnet/minecraft/class_8177;named registerLnet/minecraft/block/BlockSetType;register(Lnet/minecraft/block/BlockSetType;)Lnet/minecraft/block/BlockSetType;
-
stream
- Mappings:
Namespace Name Mixin selector official aLdcn;a()Ljava/util/stream/Stream;intermediary method_49232Lnet/minecraft/class_8177;method_49232()Ljava/util/stream/Stream;named streamLnet/minecraft/block/BlockSetType;stream()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
-
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
-