Class ItemTool.Rule
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemTool.Rule
- Enclosing class:
ItemTool
-
Constructor Summary
ConstructorDescriptionRule
(MappedEntitySet<StateType.Mapped> blocks, @Nullable Float speed, @Nullable Boolean correctForDrops) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable Boolean
@Nullable Float
getSpeed()
int
hashCode()
static ItemTool.Rule
read
(PacketWrapper<?> wrapper) void
setBlocks
(MappedEntitySet<StateType.Mapped> blocks) void
setCorrectForDrops
(@Nullable Boolean correctForDrops) void
static void
write
(PacketWrapper<?> wrapper, ItemTool.Rule rule)
-
Constructor Details
-
Rule
public Rule(MappedEntitySet<StateType.Mapped> blocks, @Nullable @Nullable Float speed, @Nullable @Nullable Boolean correctForDrops)
-
-
Method Details