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
ConstructorsConstructorDescriptionVisual(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 aVisualrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.shapes.VoxelShapecamera(net.minecraft.core.BlockPos pos) net.minecraft.world.phys.shapes.VoxelShapeReturns the value of thecollisionrecord component.net.minecraft.world.phys.shapes.VoxelShapecollision(net.minecraft.core.BlockPos pos) net.raphimc.viabedrock.api.model.CustomBlockPropertiesReturns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefullCollisionrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thelargeCollisionrecord component.net.minecraft.world.phys.shapes.VoxelShapeReturns the value of theocclusionrecord component.net.minecraft.world.phys.Vec3offset(net.minecraft.core.BlockPos pos) net.minecraft.world.phys.shapes.VoxelShapeReturns the value of theselectionrecord component.net.minecraft.world.phys.shapes.VoxelShapeselection(net.minecraft.core.BlockPos pos) final StringtoString()Returns a string representation of this record class.
-
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 aVisualrecord class.- Parameters:
definition- the value for thedefinitionrecord componentcollision- the value for thecollisionrecord componentselection- the value for theselectionrecord componentocclusion- the value for theocclusionrecord componentfullCollision- the value for thefullCollisionrecord componentlargeCollision- the value for thelargeCollisionrecord 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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
definition
public net.raphimc.viabedrock.api.model.CustomBlockProperties definition()Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
collision
public net.minecraft.world.phys.shapes.VoxelShape collision()Returns the value of thecollisionrecord component.- Returns:
- the value of the
collisionrecord component
-
selection
public net.minecraft.world.phys.shapes.VoxelShape selection()Returns the value of theselectionrecord component.- Returns:
- the value of the
selectionrecord component
-
occlusion
public net.minecraft.world.phys.shapes.VoxelShape occlusion()Returns the value of theocclusionrecord component.- Returns:
- the value of the
occlusionrecord component
-
fullCollision
public boolean fullCollision()Returns the value of thefullCollisionrecord component.- Returns:
- the value of the
fullCollisionrecord component
-
largeCollision
public boolean largeCollision()Returns the value of thelargeCollisionrecord component.- Returns:
- the value of the
largeCollisionrecord component
-