Package net.minecraft

Record Class class_7317.class_7318

java.lang.Object
java.lang.Record
net.minecraft.class_7317.class_7318
Record Components:
block -
All Implemented Interfaces:
class_7317
Enclosing interface:
class_7317

public static record class_7317.class_7318(Block block) extends Record implements class_7317
Mappings:
Namespace Name
official bzt$a
intermediary net/minecraft/class_7317$class_7318
named net/minecraft/class_7317$class_7318
official c
intermediary comp_691
named block
  • Field Details

    • block

      private final Block block
      The field for the block record component.
    • field_38544

      public static final com.mojang.serialization.Codec<class_7317.class_7318> field_38544
      Mappings:
      Namespace Name Mixin selector
      official b Lbzt$a;b:Lcom/mojang/serialization/Codec;
      intermediary field_38544 Lnet/minecraft/class_7317$class_7318;field_38544:Lcom/mojang/serialization/Codec;
      named field_38544 Lnet/minecraft/class_7317$class_7318;field_38544:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • class_7318

      public class_7318(Block block)
      Creates an instance of a class_7318 record class.
      Parameters:
      block - the value for the block record component
  • Method Details

    • method_42841

      public void method_42841(ServerPlayerEntity serverPlayerEntity)
      Specified by:
      method_42841 in interface class_7317
      Mappings:
      Namespace Name Mixin selector
      official a Lbzt;a(Laea;)V
      intermediary method_42841 Lnet/minecraft/class_7317;method_42841(Lnet/minecraft/class_3222;)V
      named method_42841 Lnet/minecraft/class_7317;method_42841(Lnet/minecraft/server/network/ServerPlayerEntity;)V
    • method_42843

      public boolean method_42843(class_7317 class_7317)
      Specified by:
      method_42843 in interface class_7317
      Mappings:
      Namespace Name Mixin selector
      official a Lbzt;a(Lbzt;)Z
      intermediary method_42843 Lnet/minecraft/class_7317;method_42843(Lnet/minecraft/class_7317;)Z
      named method_42843 Lnet/minecraft/class_7317;method_42843(Lnet/minecraft/class_7317;)Z
    • method_42840

      public ItemStack method_42840()
      Specified by:
      method_42840 in interface class_7317
      Mappings:
      Namespace Name Mixin selector
      official a Lbzt;a()Lbux;
      intermediary method_42840 Lnet/minecraft/class_7317;method_42840()Lnet/minecraft/class_1799;
      named method_42840 Lnet/minecraft/class_7317;method_42840()Lnet/minecraft/item/ItemStack;
    • method_42846

      public com.mojang.serialization.Codec<? extends class_7317> method_42846()
      Specified by:
      method_42846 in interface class_7317
      Mappings:
      Namespace Name Mixin selector
      official b Lbzt;b()Lcom/mojang/serialization/Codec;
      intermediary method_42846 Lnet/minecraft/class_7317;method_42846()Lcom/mojang/serialization/Codec;
      named method_42846 Lnet/minecraft/class_7317;method_42846()Lcom/mojang/serialization/Codec;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • block

      public Block block()
      Returns the value of the block record component.
      Returns:
      the value of the block record component