Record Class BedrockCustomBlocks.Visual

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.block.BedrockCustomBlocks.Visual
Enclosing class:
BedrockCustomBlocks

public static record BedrockCustomBlocks.Visual(net.raphimc.viabedrock.api.model.CustomBlockProperties definition, net.minecraft.world.phys.shapes.VoxelShape collision, net.minecraft.world.phys.shapes.VoxelShape selection, net.minecraft.world.phys.shapes.VoxelShape occlusion, boolean fullCollision, boolean largeCollision) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Visual(net.raphimc.viabedrock.api.model.CustomBlockProperties definition, net.minecraft.world.phys.shapes.VoxelShape collision, net.minecraft.world.phys.shapes.VoxelShape selection, net.minecraft.world.phys.shapes.VoxelShape occlusion, boolean fullCollision, boolean largeCollision)
    Creates an instance of a Visual record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.phys.shapes.VoxelShape
    camera(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.phys.shapes.VoxelShape
    Returns the value of the collision record component.
    net.minecraft.world.phys.shapes.VoxelShape
    collision(net.minecraft.core.BlockPos pos)
     
    net.raphimc.viabedrock.api.model.CustomBlockProperties
    Returns the value of the definition record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the fullCollision record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the largeCollision record component.
    net.minecraft.world.phys.shapes.VoxelShape
    Returns the value of the occlusion record component.
    net.minecraft.world.phys.Vec3
    offset(net.minecraft.core.BlockPos pos)
     
    net.minecraft.world.phys.shapes.VoxelShape
    Returns the value of the selection record component.
    net.minecraft.world.phys.shapes.VoxelShape
    selection(net.minecraft.core.BlockPos pos)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Visual

      public Visual(net.raphimc.viabedrock.api.model.CustomBlockProperties definition, net.minecraft.world.phys.shapes.VoxelShape collision, net.minecraft.world.phys.shapes.VoxelShape selection, net.minecraft.world.phys.shapes.VoxelShape occlusion, boolean fullCollision, boolean largeCollision)
      Creates an instance of a Visual record class.
      Parameters:
      definition - the value for the definition record component
      collision - the value for the collision record component
      selection - the value for the selection record component
      occlusion - the value for the occlusion record component
      fullCollision - the value for the fullCollision record component
      largeCollision - the value for the largeCollision record component
  • Method Details

    • offset

      public net.minecraft.world.phys.Vec3 offset(net.minecraft.core.BlockPos pos)
    • collision

      public net.minecraft.world.phys.shapes.VoxelShape collision(net.minecraft.core.BlockPos pos)
    • selection

      public net.minecraft.world.phys.shapes.VoxelShape selection(net.minecraft.core.BlockPos pos)
    • camera

      public net.minecraft.world.phys.shapes.VoxelShape camera(net.minecraft.core.BlockPos pos)
    • 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 o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • definition

      public net.raphimc.viabedrock.api.model.CustomBlockProperties definition()
      Returns the value of the definition record component.
      Returns:
      the value of the definition record component
    • collision

      public net.minecraft.world.phys.shapes.VoxelShape collision()
      Returns the value of the collision record component.
      Returns:
      the value of the collision record component
    • selection

      public net.minecraft.world.phys.shapes.VoxelShape selection()
      Returns the value of the selection record component.
      Returns:
      the value of the selection record component
    • occlusion

      public net.minecraft.world.phys.shapes.VoxelShape occlusion()
      Returns the value of the occlusion record component.
      Returns:
      the value of the occlusion record component
    • fullCollision

      public boolean fullCollision()
      Returns the value of the fullCollision record component.
      Returns:
      the value of the fullCollision record component
    • largeCollision

      public boolean largeCollision()
      Returns the value of the largeCollision record component.
      Returns:
      the value of the largeCollision record component