Record Class BlockTransformer.BlockTransformerData
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.BlockTransformer.BlockTransformerData
- Enclosing class:
BlockTransformer
public static record BlockTransformer.BlockTransformerData(Object blockStateProvider, Sound sound, BlockTransformer.TransformParticle particle, List<Direction> disallowedFaces, @Nullable net.kyori.adventure.key.Key loot, BlockTransformer.DropStrategy dropStrategy, BlockTransformer.TransformType transformType, boolean consumeOnUse, int itemDamagePerUse)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionBlockTransformerData(Object blockStateProvider, Sound sound, BlockTransformer.TransformParticle particle, List<Direction> disallowedFaces, @Nullable net.kyori.adventure.key.Key loot, BlockTransformer.DropStrategy dropStrategy, BlockTransformer.TransformType transformType, boolean consumeOnUse, int itemDamagePerUse) Creates an instance of aBlockTransformerDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockStateProviderrecord component.builder()booleanReturns the value of theconsumeOnUserecord component.Returns the value of thedisallowedFacesrecord component.Returns the value of thedropStrategyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theitemDamagePerUserecord component.@Nullable net.kyori.adventure.key.Keyloot()Returns the value of thelootrecord component.particle()Returns the value of theparticlerecord component.sound()Returns the value of thesoundrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformTyperecord component.
-
Constructor Details
-
BlockTransformerData
public BlockTransformerData(Object blockStateProvider, Sound sound, BlockTransformer.TransformParticle particle, List<Direction> disallowedFaces, @Nullable net.kyori.adventure.key.Key loot, BlockTransformer.DropStrategy dropStrategy, BlockTransformer.TransformType transformType, boolean consumeOnUse, int itemDamagePerUse) Creates an instance of aBlockTransformerDatarecord class.- Parameters:
blockStateProvider- the value for theblockStateProviderrecord componentsound- the value for thesoundrecord componentparticle- the value for theparticlerecord componentdisallowedFaces- the value for thedisallowedFacesrecord componentloot- the value for thelootrecord componentdropStrategy- the value for thedropStrategyrecord componenttransformType- the value for thetransformTyperecord componentconsumeOnUse- the value for theconsumeOnUserecord componentitemDamagePerUse- the value for theitemDamagePerUserecord component
-
-
Method Details
-
builder
-
toBuilder
-
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 '=='. -
blockStateProvider
Returns the value of theblockStateProviderrecord component.- Returns:
- the value of the
blockStateProviderrecord component
-
sound
Returns the value of thesoundrecord component.- Returns:
- the value of the
soundrecord component
-
particle
Returns the value of theparticlerecord component.- Returns:
- the value of the
particlerecord component
-
disallowedFaces
Returns the value of thedisallowedFacesrecord component.- Returns:
- the value of the
disallowedFacesrecord component
-
loot
public @Nullable net.kyori.adventure.key.Key loot()Returns the value of thelootrecord component.- Returns:
- the value of the
lootrecord component
-
dropStrategy
Returns the value of thedropStrategyrecord component.- Returns:
- the value of the
dropStrategyrecord component
-
transformType
Returns the value of thetransformTyperecord component.- Returns:
- the value of the
transformTyperecord component
-
consumeOnUse
public boolean consumeOnUse()Returns the value of theconsumeOnUserecord component.- Returns:
- the value of the
consumeOnUserecord component
-
itemDamagePerUse
public int itemDamagePerUse()Returns the value of theitemDamagePerUserecord component.- Returns:
- the value of the
itemDamagePerUserecord component
-